Beginners - March 2011 (Page 23)

System skips user input line restarting loop
 
I have a small problem in my program. The program runs fine, but when the user is prompted to enter a second diver it skips the diver's name entry and goe...
[2 replies] Last: Thanks for the link, but I went for a short fix so as not to rewrite a... (by shiyongseng)
main getting parameters for function call all wrong
 
I'm sure this is one of those lame mistakes, but...I'm trying to make a function call in main(), and the compiler is forming the access to the arguments all wro...
[4 replies] Last: No, no consts in the function. Didn't it also mix up the first and thi... (by mzimmers)
giving a semicolon error
 
okay, I have searched through my code, and I have absolutely no Idea why this is telling me that it needs a semicolon, or a comma before token { it throws th...
[3 replies] Last: Thank you So much, compiling fine now!! sorry about my terrible format... (by alexhairyman)
Please help fast!
 
Problem: Write a program that computes the cost of a long-distance call. The cost of the call is determined according to the following rate schedule: a. Any ...
[14 replies] Last: I didnt copy the code ive been sitting on it for two days now trying t... (by trs5138)
by Rumi
trouble understanding sstream and string.
 
okay, so I'm extremely new to c++, never programmed before this and i'm learning with my boyfriend who has some experience but c++ is new to him too. He's been ...
[11 replies] Last: However, with getline you would still use cin to get input from the co... (by hanst99)
Nested loop Triangle of stars
 
So the problem is to use nested for loops statements to draw triangles of "*"s. The number of "*"s on the last row is input from the user (valid range: 5 to ...
[10 replies] Last: this is what i was looking for< thanx for your help any way. #incl... (by ccole101187)
Play Again not working
 
I am a total newbie and am self teaching myself c++. My appoligies if this has been asked and answered. I did not find anything in the forums I have a program ...
[3 replies] Last: Sometimes you just need another set of eyes to help, have fun programm... (by lordmat)
Problem with pow function
 
This is not compiling for me for some reason. I have at the beginning of the program #include<cmath> It is giving me an error saying there is something wrong ...
[3 replies] Last: Disch great thinking with using bitwise operators, sometimes you have ... (by lordmat)
by dilz16
Help With Equation
 
I am stuck on a question for my grade 10 comp sci class. Ive been stuck on it for days and the teacher just "gives me hints." my program runs fine its the formu...
[2 replies] Last: Try putting some cout objects in your function call to see what is hap... (by lordmat)
Tell me if im right :)
 
See this: if (!GameEngine::GetEngine()->Initialize(iCmdShow)) I know this is calling the Initialize function, but is it doing it in the following way: ...
[3 replies] Last: :D (by TpOreilly)
need some guide
 
hi, i am new to linux cpp programming previously , i worked on symbian developing. but now i decide to turn to linux. what IDE and SDK are recommended for cp...
[8 replies] Last: I use vi because I do most all of my coding in Linux. I'm a command-li... (by sadavied)
Burning C++ questions
 
Hi, So My C++ professor gave us a 50 question bonus assignment and if anyone in the class submits the test and gets all of them right he will give everyone in t...
[4 replies] Last: Well thats ok, I already did the questions these were just the ones I ... (by PhysFan)
C++ Help on a question
 
The copy constructor for a class is called a) When an object of the class is passed by value to a function. b) When an object of the class is initialized by...
[1 reply] : Haven't you read up on copy constructors and their function? (by firedraco)
Header files!
 
I have a program called, "Appcenter." I have already sectioned off code into .cpp files. How do I write a header file for these so that I can include them? W...
[7 replies] Last: Actually, it does mean something: it instantiates an object of type b... (by hanst99)
Writing arrays with numbers and strings
 
Is there any way to write an array that can take both numbers and strings in? Ex. int person ; person = "Bob"; person = 27; Is there any way to do tha...
[2 replies] Last: Ah! Thank you so much! Everything works much better now. (by theholyfork)
by TimL
Trouble overwriting data in c-style strings using pointers
 
As part of a class project, we were tasked with creating a number of functions using both subscript notation and pointer arithmetic to make a set of driver code...
[4 replies] Last: Thank you again. You've helped me clarify some more of how C-style str... (by TimL)
using functions as arguments to cout?
 
I'm sure there's a way to do this, but it escapes me at the moment. I'd like to compose a cout statement that uses multiple function calls as arguments, like: ...
[14 replies] Last: Right then. Thanks for the advice. (by anonymous23323124)
by amiref
int main(int argc, char * argv[]) PROBLEM
 
Hi I want to know what is difference if in our code and in main function , we use int main(int argc, char * argv ) instead of int main() ? in other words :...
[1 reply] : the (int argc, char * argv ) stuff gives you the data passed to the ... (by Disch)
help in code plz
 
Digital studio for editing and printing photos needs to keep information of all its customers’ orders. Each order has a unique number. This number is generate...
[1 reply] : What is your problem? (by hanst99)
by Spada
Generic Class
 
Hi I am a beginner in c++, please can someone tell me what's wrong with this code ? It gave me this error :'MyClass<T>' should be preceded by ':' #inc...
[3 replies] Last: Thank you guys, I' m very sorry for this stupid question, but i have t... (by Spada)
March 2011 Pages: 1... 2122232425... 52
  Archived months: [feb2011] [apr2011]

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