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

Username:   Password: 
 RegisterRegister   
 Having trouble putting things together
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
recyclebin123




PostPosted: Sun May 29, 2005 10:49 pm   Post subject: Having trouble putting things together

I got a couple of problems here

1. I dun know how to combine the 2 procedures

2.after you select an option from the menu how do u link it back to the menu (i know it has something to do with that exit when hasch thing but i dun no where to put it)

3. I dun no how to make the results part. Im supposed to put the marks from the test onto the result part but i dun no how

plz help
Sponsor
Sponsor
Sponsor
sponsor
recyclebin123




PostPosted: Sun May 29, 2005 10:50 pm   Post subject: (No subject)

o yea heres the pic
recyclebin123




PostPosted: Mon May 30, 2005 2:33 pm   Post subject: (No subject)

....any1? Sad Sad
[Gandalf]




PostPosted: Mon May 30, 2005 3:46 pm   Post subject: (No subject)

Please try and be more clear when asking your question.

To combine a procedure?\
code:
proc 1
put "stuff"
end 1
proc 2
put "indeed"
1
end 2

Don't think that's what you are asking though.

Put exit when... when you want to exit, right after you're finished doing everything you want... Again, please be clearer.
recyclebin123




PostPosted: Mon May 30, 2005 3:56 pm   Post subject: (No subject)

sry about that...ill try asking my questions more clearer this time

In the program there are 2 procedures...one is the menu the other is the titlescreen.....the thing is that i dun no how to play the titlescreen first and goto the menu after the user has pressed any key in the titlescreen .......also in the menu i dun no how to make it go back to the menu once you have selected an option such as animation ....lastly in the results option im supposed to have the results of the test after the person has done it but i dun no how to put the results in the results part

plz and ty to any1 who can help me Smile Smile Smile Smile
StarGateSG-1




PostPosted: Mon May 30, 2005 4:12 pm   Post subject: (No subject)

First things first, For the title screen it shoudln't be user dependent, get rid of the loop, for going back and forth look up body procedure.
Wait I will be nice.
At the top of your program.

code:

forward procedure (procedure name)


Then instead of putting this.

code:

procedure (procedure name)


Put This
code:

body procedure (procedure name)


Know you just call the procedure at the end of the title screen.
Also turn each seperate choice into its own procedure.
By the way you could use a press any key type thing but it isn't effective for the title screen.
Also your text is way to long and full of errors you need to clean that up alot.
recyclebin123




PostPosted: Mon May 30, 2005 6:36 pm   Post subject: (No subject)

hmmmm I see thx for that ....one more thing ,if i were to change each option into a seperate procedure like u said how do i call each one out when it is picked

This is the updated version but as u can see i dun no what to do after this
[Gandalf]




PostPosted: Mon May 30, 2005 9:32 pm   Post subject: (No subject)

I don't get it... You call a procedure by typing in it's name...

Quote:
also in the menu i dun no how to make it go back to the menu once you have selected an option such as animation

Why would you want to go back to the menu after something is selected? Wouldn't you want to do something instead? If you did want to do this, then just loop it, but I don't think you would want that.

Just put an if statement, and if something is inputted then procedure 1.
code:
if input = "blah" then
   results
end if


Just make sure to have the procedure you are calling before the if statement.
Sponsor
Sponsor
Sponsor
sponsor
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  [ 8 Posts ]
Jump to:   


Style:  
Search: