smilitude of solitude wrote:
> Uhh...
> Stadazi, I think you missed the point.
> It depends on which compiler you use - /to strictly define main to
> return int/. Once upon a time, I used TC and TC didnt have that problem.
> If you rewrite the code into this

The compiler wasn't ANSI C compliant then ;-) By the C standard, main
has to be int, it's not a compiler/platform question.

> #include <cstdio>
> #include <iostream>
> #include <cstdlib>
> using namespace std;
>
> int main() {
>  int allowed=1;
>  /* /* */ allowed=0; // */
>  printf( allowed ? "yes\n" : "no\n" );
> system("pause");
> return 0;
> }

This code isn't C anyway.

I'm sorry for being pedantic, but that's just the way C coders are ;-}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to