Ok first and foremost - ALWAYS post your code with the appropriate tags.
To answer your problem tho, when you see LNK in your errors, it has something to do with the way you're using anything above main. In your case, you made the definition for your DrawGallons() function inside of main, which is not allowed. Also, when you made the definition inside of main, you used a semicolin after the header (also illegal).
So to fix: take out your system(pause) and return 0 and put it at the end of your main. Below main, define your function definitions with no semicolin after them.
The other warning you're getting are because of the way you're trying to "draw" your guy on the screen, and the compiler thinks you're using an escape sequence
Also, you like to put random blocks of code everywhere, and I'd definitely stay away from that. Generally, you should flow you're programs like this:
cpp
// include files up here
// structures, function declarations could go here
// or in a separate header file
void Function1( int x );
int main( void )
{
// create objects
int variable;
// block of main
Function1( variable );
// great success!
return 0;
}
// function definitions here
void Function1( int x );
{
// body of function
cout << "x: " << x << endl;
}
Hope this helps!
This post has been edited by Psionics: 28 Sep, 2008 - 06:10 AM