(Dec 31, 2011 12:55 PM)ryan⚜ Wrote: 1) I'm not returning a value therefore void will work just fine.
2) Because I use void, I don't have to have a return value, so return 0; is unnecessary and would cause errors. I also save like 2 bits of memory which is EXTREMELY important.
3) If you read through my tutorial, I explain why void is okay to use while int isn't necessary for these purposes.
If I recall right the ISO standard for C++ states that typing the words "return 0" is optional, but I think the standard is to still use int for main. In fact I'm pretty sure they threaten to come after your family if you do not use an integer return type for main.
by the way, nice tutorial, stick with it.
