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++,
Can't compile, Tried 2 types of compilers
Jan 31 2006, 01:29 AM
Quote
0.0469sec
0.29
6 queries
GZIP Disabled