On Nov 1, 9:24 pm, James Kuyper <jameskuy...@verizon.net> wrote:
> On 11/01/2011 04:17 PM, zemir wrote:
> ...
>
> > On Nov 1, 8:06 pm, Ian Collins <ian-n...@hotmail.com> wrote:
> >>> void main() {
>
> >> This should be int main(). On modern compilers, this won't compile
> >> because you are returning values.
> > Yes, of course........... int main() is more right but my choice is
> > such common that it is not more a error......
>
> Just because it's a popular error doesn't make it cease to be an error.
> Get it right now, while you're still learning. The fewer bad habits you
> pick up now, while you're still new to the language, the less you'll
> have to unlearn before you can be employable.
Ok, from now and in the future i will use always "int main()"
I am sure thai it is the right choice.
|