#16 main should return int

open
nobody
5
2012-07-18
2005-10-29
Anonymous
No

In all example.cpp files, main is defined as void main.
Many compilers (I use gcc 4.0.2) fail to compile the
code since main should have return type int.

Replacing "void main()" with "int main()" in all the
cpp files solves the problem. So please do so.

Discussion


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks