Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function help

Status
Not open for further replies.

Gande

Programmer
Oct 4, 2001
4
US
if i have to functions tim and bob and in the code bob is under tim tim wont go to bob becuase it is not declared yet is there any way to fix this -Gande
 
before any function definitions (usually at the beginning of the main) type

<function type> bob(<params>);
<function type> tim(<params>);

where <function type = void,int,double etc..

and <params> = the arguments you will pass to the function

then after the main (or anywhere after the pre-declaration) define your functions.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top