View Single Post
Old Oct 9th, 2005, 3:26 PM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The first thing you can't do is define a function inside another function. That's what this message is telling you:
Quote:
'gas': local function definitions are illegal.
Move that definition BELOW (or ABOVE) main, it doesn't get to be inside. Inside is where you CALL the effer.

Fix that, and come back if you're still fuzzled.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote