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

Username:   Password: 
 RegisterRegister   
 Include command problems
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
who cares?




PostPosted: Sun Dec 28, 2003 8:27 am   Post subject: Include command problems

Hi!

I'm trying to make a game and I am using the include command. I am declaring all the variables/procedures in the "main" program and i am using some of them in the subprogram. However, I get a message in the subprogram that says that one of the procedures that i have declared in the main program does not exist. I have made another program in the past that I have used this technique in and it worked. I checked everything that might be wrong with it and I can't find a thing. Can anyone please advise as to what might be wrong with my program? Maybe someone else has run into this problem before. Thank you very much.
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Sun Dec 28, 2003 9:52 am   Post subject: (No subject)

could you upload the files (or pm them to me) so i can see what's wrong?
Tony




PostPosted: Sun Dec 28, 2003 1:06 pm   Post subject: (No subject)

it might be your positioning. You treat include like if all the code is copied from the file and pasted in that spot. So the procedure used should be decleared before the include statment.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
who cares?




PostPosted: Sun Dec 28, 2003 3:14 pm   Post subject: Thanks!

Thanks a lot! That was it!
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  [ 4 Posts ]
Jump to:   


Style:  
Search: