Thread: C++ Questions
View Single Post

Old 09-05-2006, 05:11 AM   #52 (permalink)
Loser777
Geeky Azn d00d

Enlightened
 
Loser777's Avatar
 
Join Date: Oct 2005
Location: Irvine, California
Posts: 3,043
Loser777 is a glorious beacon of lightLoser777 is a glorious beacon of lightLoser777 is a glorious beacon of light
Send a message via AIM to Loser777 Send a message via Skype™ to Loser777
Default

Quote:
Originally Posted by Dyndrilliac View Post
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.
__________________
Q6600 @ 3.6GHz 1.32v
9800GX2 @ 700/1752/1000
4GB DDR2 800 4-4-4-12 2.0v
ASUS P5Q-E
Loser777 15 0FF11|\|3   Reply With Quote