|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Average Program
I'm making a program for a friend's Counter-Strike clan to average potential member's kills. Anyway, I skipped a few games because i wanted to hurry and see if everything was going ok. Whenever i try to compile. it says
parse error before '>' on line 13 parse error before '>' on line 15 I can't figure out what's wrong, here's the source: Code:
//Copyright of Alex Watson and the Alpha & Omega clan administrators.
//Last modified: 04/05/04
#include <iostream.h>
#include <stdlib.h>
void main()
{
int Go, Gt, Sum, Final;
cout << "Enter the amount of kills from your last seven (7) games below ";
cout << "to see if you are eligible to join the Alpha & Omega clan/n";
cout << "Game 1"
cin >> Go;
cout << "Game 2"
cin >> Gt;
Sum = Go + Gt;
Final = Sum / 2;
cout << "Your average is " << Final << endl;
system("PAUSE");
}
|
|
#2
|
||||
|
||||
|
You left off semi-colons on the cout lines preceding each cin line.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
Wow, noob mistake. Thanks a lot for pointing that out.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Average Program |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|