General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 5th, 2004, 03:57 PM
Ebene Ebene is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 Ebene User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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");
   }

Reply With Quote
  #2  
Old April 5th, 2004, 04:14 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
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.

Reply With Quote
  #3  
Old April 5th, 2004, 04:20 PM
Ebene Ebene is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 2 Ebene User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Wow, noob mistake. Thanks a lot for pointing that out.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Average Program


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT