Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Can't compile, Tried 2 types of compilers

views
     
sweemeng
post Jan 31 2006, 01:29 AM

organic code generator
*****
Senior Member
879 posts

Joined: Aug 2005
From: kuala lumpur


here is a few lesson in iso c++
lesson 1: standard library do not end with a .h anymore,
library like iostream.h is now iostream,
unless it is non standard library or your own .h file, otherwise it is like above.
also c library is now start with a c. stdlib.h is now cstdlib

lesson 2: void main() is now deprecated, use int main() instead
which must end with a return 0

which explain why dev-c++ not working, because dev-c++ is based on gcc which is based on iso, with some deviation. and vc++ is not what you call standard c++ compiler. so your program might work on vc++,

 

Change to:
| Lo-Fi Version
0.0469sec    0.29    6 queries    GZIP Disabled
Time is now: 24th December 2025 - 06:20 AM