Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#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