Sam Varshavchik <[EMAIL PROTECTED]> writes: >>> Please run this code, and let us know what happens. >> >> [ ... ] >> >> % gcc -o sam sam.c >> sam.c: In function `main': >> sam.c:4: warning: return type of `main' is not `int' >> % ./sam >> Sam is wrong >> % > > Either you're kidding me, or your C compiler has a bug.
Well, neither: I made an error when removing the leading '> ' characters on each line after copying and pasting from a message here. I used a global replace, and this changed '>>' to '>' in the 'if' statement. When I fixed that and recompiled, I got the desired result: % ./sam Sam is right -- Lloyd Zusman [EMAIL PROTECTED] God bless you. ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
