![]() |
How To Fix This error
I have compile a program, below is a part of the code:
typedef enum{false,true}boolean; But after compile it give me the following error expected identifier before "false" expected "}" before "false" expected unqualified-id before "false" expected ',' or ';' before "false" expected declaration before "}" token. I'm using the Dev-C++ to compile Can anybody help me.Thank You |
Re: How To Fix This error
typedef enum{false,true}boolean; means you are assigning value 0 to the false and 1 to true but it might so happen that its predefined for the compiler.
|
Re: How To Fix This error
1 Attachment(s)
Then how do I fix it?
Thank You I attached together with the code. If possible could you fix it and make an execute program to me Thank You |
Re: How To Fix This error
Just try replacing it with typedef enum{_false_,_true_}_boolean_; and see if it compiles or there are some more errors somewhere else.
|
Re: How To Fix This error
Quote:
|
Re: How To Fix This error
What are the errors coming.
|
Re: How To Fix This error
Quote:
|
Re: How To Fix This error
Quote:
|
Re: How To Fix This error
Quote:
My e-mail: lieweffect@yahoo.com |
Re: How To Fix This error
GMail does not allow me to upload exe files and I have renamed it to g4e file. Please rename it to exe file.
|
| All times are GMT +5.5. The time now is 00:32. |