Erroneous C++ «Hello World» template

1 reply [Last post]
Offline
Last seen: 50 weeks 2 days ago
Joined: 05/31/2011
Posts:

Hi!

Like the idea of an actual online compiler. I suggest you guys modify the basic C++ «Hello World» template, though, which starts with illegal code (main(), in C++, is never void... See http://www2.research.att.com/~bs/bs_faq2.html#void-main for a detailed explanation by Stroustrup).

Cheers! (and thanks!)

tim.speed's picture
Offline
Last seen: 17 hours 20 min ago
Joined: 02/24/2010
Posts:
Good find! Thanks for

Good find! Thanks for reporting this, int main is a much better standard to follow, this has now been fixed : )

-----------------
Tim Speed
Compilr Developer and CTO