Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Procedures Problem
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Naveg




PostPosted: Wed Feb 23, 2005 6:08 pm   Post subject: Procedures Problem

I have a number of procedures that need to be able to call each other. The problem is that it says some have not been declared because they come after. Here is an example

Proc A,B, and C

Proc A has to call both B and C
both B and C have to be able to call A
Sponsor
Sponsor
Sponsor
sponsor
person




PostPosted: Wed Feb 23, 2005 6:12 pm   Post subject: (No subject)

forward the second proc
Flikerator




PostPosted: Wed Feb 23, 2005 6:15 pm   Post subject: (No subject)

Declare all procs at the beggining and then call them afterwords. That way they are always declared Razz
person




PostPosted: Wed Feb 23, 2005 6:17 pm   Post subject: (No subject)

Quote:
Declare all procs at the beggining and then call them afterwords. That way they are always declared


u do realize that his procs have to call eachother so he cant declare them before, he has to use the forward command
Naveg




PostPosted: Wed Feb 23, 2005 6:29 pm   Post subject: (No subject)

person wrote:
forward the second proc


Worked beautifully. Thank you
Flikerator




PostPosted: Wed Feb 23, 2005 6:33 pm   Post subject: (No subject)

person wrote:
Quote:
Declare all procs at the beggining and then call them afterwords. That way they are always declared


u do realize that his procs have to call eachother so he cant declare them before, he has to use the forward command


I meant in general because you already answered it, sry should have clarified.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: