![]() |
| ||
| Re: wat does this do The main method is often misunderstood. In C89, main() on its own is acceptable, but C99 only allows for either (The second one is for command line paramaters): Quote:
In C++ there is allowed Quote:
The ISO C Standard (ISO/IEC 9899:1999) says it is also illegal for C++ to have a return type of void. The return type should be an integer and the function should return 0 or EXIT_SUCCESS; at the end. A return type of void does NOT mean it returns nothing, it just means it returns a junk value which will pribably not be 0. I do hope thats right, that just my understanding from my notes. |
| ||
| Re: wat does this do ahh, I see |
| All times are GMT -4. The time now is 7:26 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC