Computer Science Canada Pong Menu |
Author: | coolest35 [ Mon Jan 19, 2004 11:08 pm ] |
Post subject: | Pong Menu |
Hi 8) , i have put together a menu + options + credits and extra stuff 8) like that, the all the turing files are attached, i am trying to take the game from one file and trying to put it as a procedure in the main menu file, but some error comes up ![]() ![]() ![]() Any help would be much appreciated, ![]() thanx unknow dude ![]() |
Author: | Dan [ Tue Jan 20, 2004 8:27 pm ] | ||
Post subject: | |||
well if u use "include filename.t", when it gets to that line it will run all the code in that file and then come back to the one you are in. if there are procuders or varbiles decalred in it thous are add to the progame and can be accesed affter the include line. for error profe menu with numbers only you can simply test if inputed num > minnum and num < maxnum. to check for if they put in a string insted of a num you can 1st take the input as a sting then do this:
strintok checks to see if it can chage a string to a int and strint chages it to a int |