Quote:
Originally Posted by Dyndrilliac
You fool, you know nothing. Every program MUST have a method(function,proc) that serves as the entry point for the program. This is usually Main() or the like. Every method returns a value. Period. End of discussion. However, most languages allow you to create void methods or sub-routines which don't require you to specify a value, and return null automatically, with compiler automated basepointers and stack frames and the like.
As I said, the return statement is irrelevant to your issue. Whoever told you that should be shot. You have two options: Forced pauses and control loops.
Control loops represent the usual methods for multi-threaded applications and event driven code (the best kind). Forced pauses are the usual methods for crappy JMP-based unmodular badly written code. The choice is clear.
|
Eh.. I know nothing.. that is true... I just said I was starting to learn. -eidt taking out return 0 didn't fix it.. I guess I will try the loop then.