?
?
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Take a look at this code. When you figure out how dumb it is then you'll understand why void main is wrong.
-PreludeCode:void strcmp ( const char *src, const char *dst ) { int ret = 0; while( !( ret = *src - *dst ) && *dst ) ++src, ++dst; if ( ret < 0 ) ret = -1; else if ( ret > 0 ) ret = 1; }
My best code is written with the delete key.
So THAT's how strcmp is constructed? No wonder it never works for me
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.