Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~680 People Reached
Favorite Forums
Favorite Tags
c++ x 13
Member Avatar for ribena500

Hi, I have some basic code: cout << "HOW MANY BOTTLES IN THE BASKET? "; cin >>bottles; I want to put an if statement to make sure that no letters are entered and only numbers are? How would i do this? Thanks guys!

Member Avatar for StuXYZ
0
145
Member Avatar for ribena500

Hi I got this code: (hours_worked[i]-35)=overtime_hours[i]; (overtime_hours[i])-(hours_worked[i])=normal_hours[i]; I get this error: error C2106: '=' : left operand must be l-value What does this mean?

Member Avatar for Salem
0
70
Member Avatar for ribena500

Hi, Can a user determine the size of an array through the programme? For example, At the beginning of the programme it will ask the user 'How many students' exams grades would you like to process today' Therefore create the array to be of the size that the user has …

Member Avatar for Nick Evan
0
130
Member Avatar for ribena500

-------------------------------------------------------------------------------- Hi, I have a calculation (shown below): total[i]=(dogs[i] + cats[i]); I want to be able to store the answer for total[i] I stupidly tried to put a cin statement underneath but that doesnt work. when i used cin, my prog just waits for me to enter a value. What …

Member Avatar for Ancient Dragon
0
77
Member Avatar for ribena500

Hi, I have a calculation (shown below): total[i]=(dogs[i] + cats[i]); I want to be able to store the answer for total[i] I stupidly tried to put a cin statement underneath but that doesnt work. What would i use?

Member Avatar for iamthwee
0
72
Member Avatar for ribena500

Hi, I have this code for an array: [code] { cout << "how many tins sold? " << (i+1) ; cin >> tinssold; cout << "how much is each tin?" << (i+1) ; cin >> tinprice; value=(tinssold*tinprice cout <<"total value of tins is " <<value; } [/code] IF I WANTED …

Member Avatar for Comatose
0
97
Member Avatar for ribena500

Hi, I am using this code: int total = 0; for (i = 0; i < 3; i++) { total+=hours_run[i]; cout <<"\n"<<total; } The aim of this code is too add up the hours run by the 3 people who enter the values. The code above produces some weird results. …

Member Avatar for ribena500
0
89