0

Hey guys im using Ms Visual C++ Compiler, im encountering this error bt i cant manage to solve it, pliz help.
Attached pliz find the source code

Error :

1>c:\users\h\desktop\wautil\wautil\wautil.cpp(23) : error C2144: syntax error : 'int' should be preceded by ':'
1>c:\users\h\desktop\wautil\wautil\wautil.cpp(33) : error C2144: syntax error : 'double' should be preceded by ':'
1>c:\users\h\desktop\wautil\wautil\wautil.cpp(209) : fatal error C1004: unexpected end-of-file found
1>Build log was saved at "file://c:\Users\H\Desktop\wautil\wautil\Debug\BuildLog.htm"
1>wautil - 3 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Attachments
1>c:\users\h\desktop\wautil\wautil\wautil.cpp(23) : error C2144: syntax error : 'int' should be preceded by ':'
1>c:\users\h\desktop\wautil\wautil\wautil.cpp(33) : error C2144: syntax error : 'double' should be preceded by ':'
1>c:\users\h\desktop\wautil\wautil\wautil.cpp(209) : fatal error C1004: unexpected end-of-file found
1>Build log was saved at "file://c:\Users\H\Desktop\wautil\wautil\Debug\BuildLog.htm"
1>wautil - 3 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by sergent
0

It says that because you delcared functions c# or java style (I don't remember which one but I think java). You don't need public static in front of function declaration. Just write int fun(); instead of public static int func(). And I am not sure about your end of file error

0

And on the end of class declaration yoi fogot

);

I fixed it but it game me like 10x more compiler errors (lol) which I am not going to fix because I dont have enough time

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.