Well hopefully if it helped let me know though what you thought of the comments I wrote for it on the site - Post it on the forums or my shoutbox on the main page. Just helps to let me know to see how I should write my tutorials as I only just started the site.
It's good :) it explains every part of the code except for the self-explanatory ones, wish I knew a bit more about programming... I seriously have to start from the beginning.
You've come to this page because you've said something similar to
void main() is not legal in the C language. main() is required to return int.
This is the Frequently Given Answer to that false assertion.
The ISO C++ Standard (ISO/IEC 14882:1998) specifically requires main to return int. But the ISO C Standard (ISO/IEC 9899:1999) actually does not. This comes as a surprise to many people. But despite what many documents say, including the Usenet comp.lang.c FAQ document (at great length), the actual text of the C Standard allows for main returning other types.
In my opinion, this is a defect in the C Standard that needs fixing with a corrigendum. (I've written a proposed revised wording that such a corrigendum could use.) It provides the authors of bad C programming books with the very loophole that they have been needing for the past decade or so.
Nonetheless, this is what the C Standard says right now, and has said for several years, and those sections of the Usenet comp.lang.c FAQ document that state that void main() is disallowed are all completely wrong. In the event of a conflict such as this between the C Standard and the Usenet comp.lang.c FAQ document, the C Standard wins.
Just wanted you to be aware of that because your main() is of type void and i just thought I would share it. Would also like to know why you did that aswell? I mean I understand that its legal but wouldn't it be better practice?
Because for starting out programmers I don't see the point in teaching the arguments int main has. I'm just doing the most basic one so people can get the idea what to do :)
@Mythios... Ah ok, fair enough. How nice of you lol :)
Did you actually read your quote from that site? It specifically states that void main() is illegal in C++ since 1998
Is the game not programmed in C though? I may be being ignorant here because C++ is my first programming language so I don't know the ins-and -uts of C, but what I do know makes me think that that program is C.