Beginners - November 2014 (Page 15)

by markat
Stuck on creating a separate function for bubble sort
 
Hello, I've been charged with the following task: •Write a program that: •1) Creates an array c...
[5 replies] Last: Oh you're right, that was careless reading on my part. I'll change the... (by markat)
Help with simple (I think) function
 
Hey, I'm trying to write a function that will return the value before x in a linear equation, note: ...
[4 replies] Last: I actually get 0 warnings :) But I am saying you should have had mo... (by TheIdeasMan)
How to get the index number of an element into an array?
 
I tried to use find() function but it returns the element not the position. int ar ={1,2,3,4,3...
[2 replies] Last: Yes. find returns an iterator to that position. To get the index,... (by shadowCODE)
by Scizor
Binary Search Issues
 
Hello! So below, I have a piece of code that is part of a hangman game. What I am doing is asking fo...
[no replies]
Dividing into rooms
 
I trying to write some code which able to detect rooms in a map. The map is represented in an matrix...
[no replies]
True Object Oriented Programming
 
Hello all, I've been learning c++ and have gotten fairly comfortable with many of the concepts, to t...
[11 replies] Last: everyone has his own learning strategy. you read 130 pages in two days... (by anup30)
by KMagic
Convert char to int
 
I have googled this basic problem and find this solotion fastest: char a = '4'; int ia = a...
[4 replies] Last: Got it. Thank you very much. (by KMagic)
help me with classes pls
 
Can someone send me a tutorial where I can learn about classes, objects and constructors? The prof...
[2 replies] Last: Made a thread about the concepts the other day. http://www.cplusplus.c... (by d1ff1cul1010)
Double Factorial without recursion, just a while loop
 
I've got a very specific homework problem I am working on. I am supposed to find the semi or double ...
[1 reply] : I'd try something like this. Note: It still breaks on the odd numbers... (by killingthemonkey)
by Pet124
Saving and Writing to a txt file
 
I'm trying to create an inventory program that you can save the data and open it again. But every ti...
[3 replies] Last: follow the link I've given. and use fstream object to read and write s... (by anup30)
Is this a decent example of using virtual functions?
 
(Sorry if this is considered a duplicate) I am trying to understand "polymorphing" and so far, th...
[4 replies] Last: Thank you so much! i finally understand polymorphing! (by SomeAmazingGuy)
Arrange 3 variables in descending order using swap
 
I'm having trouble with this project. I've been trying to get this code to run and have been greeted...
[4 replies] Last: That all worked very well!! Thank you so much for your help! :) Here ... (by nlundstrom)
by wolfv
Mysterious result from sizeof(array[]) in constructor initialization list
 
In the following example sizeof(ar ) is taken twice for the same array. First in main, where the re...
[2 replies] Last: Thank you again JLBorges. (by wolfv)
by xsxsux
variable is used without being initialized
 
when I debug this in my MS Visual Studio, I get a message saying variable is used without being init...
[5 replies] Last: OMG!! Thank you very much! It works perfectly :D:D:D (by xsxsux)
Compiler Error Help
 
EDIT : Figured it out. Wrong spelling on one of them. So I have 2 void functions. The first void fu...
[no replies]
Program finishes at second cin
 
Hey guys, can you help me with this problem I'm experiencing, when I execute my program it stops aft...
[3 replies] Last: i think its because you are trying to enter strings on the first cin w... (by xenovia12)
Question about char to int from a text file
 
Hello, I'm having a little trouble with this checkbook program and taking the string from the text...
[3 replies] Last: Thank you both for the help, I haven't quite solved it yet but I'm a l... (by foxtrot1013)
No Suitable Constructor Exists
 
I am getting this error message and so far it's the only error in my program which is a game. I am h...
[4 replies] Last: Thanks for looking that over!, ill work on it this weekend . (by JoJodoggy1)
Phone Number
 
I am doing a program for homework and am having trouble asking the user if they want to enter anothe...
[no replies]
Bulls and Cows game
 
Hi, I'm reading this book Principles and Practice using C++ and I'm a total beginner(only about a mo...
[no replies]
November 2014 Pages: 1... 1314151617... 65
  Archived months: [oct2014] [dec2014]

This is an archived page. To post a new message, go to the current page.