goto sucks instead of "GOTO" use functions....such as main();
to exit you can use system("cls"); or exit(0); with a stdlib.h header file in the includes...
both syntax works on Dev-C++ 4.9.9 or Visual 2005
goto sucks instead of "GOTO" use functions....such as main();
to exit you can use system("cls"); or exit(0); with a stdlib.h header file in the includes...
both syntax works on Dev-C++ 4.9.9 or Visual 2005
don't give wrong advices.use functions....such as main();
1. main is special function that should not be called directly from the code
2. using recursion to emulate loops - bad idea - stack size is not infinite
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
and int main() not void main().
why?Originally Posted by h_howee
WhAtHA hell Is GoInG ON
There are only a handful of reasons to use goto. None of them I appreciate much except the one about text parsers.
Search the forums for this keyword. There's heaps of posts about it.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.