943,960 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 7247
  • C++ RSS
Nov 6th, 2003
0

confused with errors in c++

Expand Post »
Hi.I'm posting a little part of my code here and the errors...
[CODE]#include <iostream.h>
intintboolfalsetrue
enum CHOICE { DrawRect = 1 ,GetArea,GetPerim,ChangeDimensions,Quit};
// rectangle class declaration
class Rectangle
[CODE]
--------------------Configuration: Week1inReview - Win32 Debug--------------------
Compiling...
review.cpp
D:\Adobe\Vc++6projects\Week1inReview\review.cpp(5) : error C2143: syntax error : missing ';' before 'enum [tag]'
D:\Adobe\Vc++6projects\Week1inReview\review.cpp(5) : error C2501: 'intintboolfalsetrue' : missing storage-class or type specifiers
D:\Adobe\Vc++6projects\Week1inReview\review.cpp(5) : fatal error C1004: unexpected end of file found
Error executing cl.exe.

review.obj - 3 error(s), 0 warning(s)


where should I look it's a huge code with like 130 lines...
Similar Threads
Reputation Points: 16
Solved Threads: 2
Posting Whiz in Training
camelNotation is offline Offline
208 posts
since Sep 2003
Nov 6th, 2003
0

Re: confused with errors in c++

I don't know but what is "intintboolfalsetrue"
try
C++ Syntax (Toggle Plain Text)
  1. #include <iostream.h>
  2. using namespace std;
  3. enum CHOICE { DrawRect,GetArea,GetPerim, ChangeDimensions, Quit};
  4. // rectangle class declaration
  5. class Rectangle{
  6. ..smthn..
  7. };
Reputation Points: 13
Solved Threads: 0
Junior Poster in Training
Valmian is offline Offline
82 posts
since Sep 2003
May 5th, 2004
0

Re: confused with errors in c++

try to post it with
[code]
[\code]
Team Colleague
Reputation Points: 55
Solved Threads: 3
Junior Poster
meabed is offline Offline
139 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Windows Api Tutorial
Next Thread in C++ Forum Timeline: Fast data storage





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC