
please wait
BEGINNER discount |
So I dont know what's wrong with my code. I have to do this task for school: If you are buying more than 5 things, butless than 20 - you get 5% off. If you ar... |
Nov 16, 2015 at 5:28am
[6 replies] Last: #include <iostream> int main() { int numberItems = 0; std::co... (by closed account E0p9LyTq)
|
by Max McGregor
Chosing fstream file path
|
Currently this just dumps the user data into the main program file, is there anyway of me putting this user data into a file in the main program file called "pl... |
Nov 16, 2015 at 4:38am
[2 replies] Last: Solved ifstream reader reader.open("players/" + username + ".txt"); (by Max McGregor)
|
by XMIT10
understanding for ( ) statement
|
a.) this code was a free source from online [ not mine / cannot take credit ] b.) you enter in how many numbers you want to add up [ example 5 ] c.) then you ... |
Nov 16, 2015 at 4:38am
[2 replies] Last: Many thanks SamuelAdams. I am very grateful for your help / explainati... (by XMIT10)
|
by srod87
Need Help.
|
I have been stuck on this the whole weekend. I was finally able to get the max and min numbers, now I need to compare the averages and display the highest one a... |
Nov 16, 2015 at 4:14am
[4 replies] Last: Try here: http://www.cplusplus.com/forum/general/178831/ (by closed account 48T7M4Gy)
|
by ryank82
C++ help
|
Hello, im a college student taking a C++ class and im currently getting my ass handed to me, most likely out of laziness. Right now im struggling to catch up to... |
Nov 16, 2015 at 4:02am
[2 replies] Last: If the curriculum states specifically that you are going to be taught ... (by ShiftLeft)
|
by ingthinks
if else if problems
|
I'm new to C++ and I'm not sure I understand how to use if else statements properly. I'm trying to make (for practice) a basic license verification program tha... |
Nov 16, 2015 at 3:58am
[6 replies] Last: I tried that and I was still getting the same results. I made the else... (by ingthinks)
|
by Marsh
The COORDINATES used in making rectangle, line circle etc,
|
Hello, everybody Am new in programing as i started c++ few months ago , now that am learning the graphics mode (graphics. h) i am finding some difficulty in it... |
Nov 16, 2015 at 3:24am
[6 replies] Last: If I recall correctly, the Turbo C Graphics uses an coordinate system ... (by liuyang)
|
by XMIT10
int sum = 0
|
Please forgive my ignorance ... I'm just looking for a brief understanding of what int sum = 0 does in c++ No code input at this time ..... ... |
Nov 16, 2015 at 3:20am
[2 replies] Last: Thank you koothkeeper ! Makes perfect sense . My searches for info ... (by XMIT10)
|
by riceballs
Uniform Hashing Example
|
Currently looking at hash table examples and not quite sure about how I would go about this. Suppose you have about 800 key values and you would like to have a... |
Nov 16, 2015 at 3:16am
[no replies]
|
by RandomGeek
Operator not working <
|
Hello Can you guys help me, the operators < in the following codes below are not working: if(Mage.HP < zero)//If Mage dies { Warrior.POW += 5; ... |
Nov 16, 2015 at 2:36am
[3 replies] Last: Those for loops, you need to break out of them if the relevant HP goes... (by kbw)
|
by A1693
"String is not null terminated" error
|
I have the following code: GetMyName() returns a std::wstring value. wchar_t szCmd_begin = {L't',L'e',L's',L't',L'\0'}; int buflen = (GetMyNa... |
Nov 16, 2015 at 12:55am
[1 reply] : You really don't need to write such obtuse looking string declarations... (by kbw)
|
by ralphcma
Function calls
|
I am trying to write a program that requires input validation through functions. The idea behind it is much like the 21 stones only it is with 13 and the comput... |
Nov 16, 2015 at 12:47am
[7 replies] Last: I like the game and how it runs, but you should add a way to set the a... (by jasonwynn10)
|
by bankaijoey
Printing the same line twice from a file and not the others.
|
When I run my code I get only the first line(Adara Starr,94) of the file printed twice. I'm having trouble getting it to read all of the line and print them all... |
Nov 15, 2015 at 11:41pm
[7 replies] Last: @jlb You are close to correct. The professor accidentally left off an... (by jlb)
|
by vwynn
Star Search Program
|
Hey everyone, I have a program named Star Search that I must do for my Computer Science class. I'm stuck because I can't seem to get the do while loop to functi... |
Nov 15, 2015 at 11:33pm
[4 replies] Last: if you want to make the program stop when the user enter 'n' just use ... (by Hanoy)
|
by Molly
getch();
|
Well , until now , this code spawns 40 random colored circles one after one and the circles are supposed to fall , so i had to increase the amount of Y repeated... |
Nov 15, 2015 at 11:23pm
[5 replies] Last: What did you set the sleep to? (by jasonwynn10)
|
by julia12
initializing an array in a constructor
|
I am supposed to make a default constructor that initializes the sectors to be empty, and sets the width to 10... but I'm not sure about how to do the syntax fo... |
Nov 15, 2015 at 11:18pm
[no replies]
|
Problem with homtask |
Write your question here. Hello, I'm an amateur to C++ but I'm learning. And also having a problem with my second hometask. Here it is. "User enters two num... |
Nov 15, 2015 at 11:03pm
[7 replies] Last: I just wanted to notify You, JLBorges, that the second time I passed t... (by MatthewThunder)
|
by brackish
Comparing getline from txt file to user input
|
Hello! I'm a complete newbie to C++ and I am having so much trouble right now! A few days ago, I did awful on a lab test asking me to create a login system s... |
Nov 15, 2015 at 10:39pm
[no replies]
|
by kserg652
NEED HELP!!!
|
Hi, I'm attempting to write this program for an assignment in my c++ class. I have the base of the program finished, but I can't get the results to fill in ... |
Nov 15, 2015 at 10:34pm
[4 replies] Last: I think you got the parameters wrong. in main () you call outputRes... (by Thomas1965)
|
by Serge1005
Complies but does not read contents from file
|
Write your question here. |
Nov 15, 2015 at 10:23pm
[7 replies] Last: [quote=Thomas1965]You are supposed to read the data into an char array... (by cire)
|