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

Username:   Password: 
 RegisterRegister   
 Need help on a turing program!! How to make only one option/output appear on the turing run window at a time @_@
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Tubby_Kat




PostPosted: Wed May 13, 2009 3:24 pm   Post subject: Need help on a turing program!! How to make only one option/output appear on the turing run window at a time @_@

What is it you are trying to achieve?
I have a menu, but I don't know how to make the menu disappear on the run window when I chose a choice.


What is the problem you are having?
I don't know how to just get one action on the screen at once so the run window won't be filled too much.

Describe what you have tried to solve this problem
I seriously don't know where to start.

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)

This is just an example of a menu with basic options.

Turing:


var answer : int

loop
    put ""
    put "THE MENU"
    put "========"
    put ""

    put "Choose an option: "
    put "       1. To see my favourite class "
    put "       2. To see my favourite animal"
    put "       3. To exit"
    put ""
    put ""

    put "CHOICE ===> " ..
    get answer
    put ""
    put ""

    if answer = 1 then
        put "Math"
    elsif answer = 2 then
        put "Tiger"
    end if
    exit when answer = 3
end loop




I want the answer and menu to show seperately and the other disappear

ex. first the run window has the menu
after the option in selected then just the answer in on the window

Please specify what version of Turing you are using
4.1
Sponsor
Sponsor
Sponsor
sponsor
Zren




PostPosted: Wed May 13, 2009 3:29 pm   Post subject: Re: Need help on a turing program!! How to make only one option/output appear on the turing run window at a time @_@

cls - Clears the screen.
Tubby_Kat




PostPosted: Wed May 13, 2009 3:43 pm   Post subject: Re: Need help on a turing program!! How to make only one option/output appear on the turing run window at a time @_@

how could I write that down in code, is it just in one line?
My help on turing doesn't work, so if you could paste that info it would be appreciated
Tubby_Kat




PostPosted: Wed May 13, 2009 3:50 pm   Post subject: Re: Need help on a turing program!! How to make only one option/output appear on the turing run window at a time @_@

NEVERMIND
I get it. I can't believe how dumb I was. -____________-
-sigh-

THANKS
tjmoore1993




PostPosted: Wed May 13, 2009 4:33 pm   Post subject: Re: Need help on a turing program!! How to make only one option/output appear on the turing run window at a time @_@

Tubby_Kat @ Wed May 13, 2009 3:50 pm wrote:
NEVERMIND
I get it. I can't believe how dumb I was. -____________-
-sigh-

THANKS


I know the problem has been solved but no one in this forum is an idiot. We all come here to help or ask questions so don't feel the need to call yourself stupid because remember this one thing... We were in your position at least once in our lives.

If you are unsure about how commands work you can go to

www.compsci.ca/holtsoft/doc
ecookman




PostPosted: Wed May 13, 2009 9:20 pm   Post subject: RE:Need help on a turing program!! How to make only one option/output appear on the turing run window at a time @_@

trust me..i had the same problem too when i started....and i have missed things that are so obvious it isn't funny


everyone makes mistakes...its what being human is all about
Tubby_Kat




PostPosted: Sun May 17, 2009 9:47 am   Post subject: Re: Need help on a turing program!! How to make only one option/output appear on the turing run window at a time @_@

tjmoore1993 @ Wed May 13, 2009 4:33 pm wrote:
Tubby_Kat @ Wed May 13, 2009 3:50 pm wrote:
NEVERMIND
I get it. I can't believe how dumb I was. -____________-
-sigh-

THANKS


I know the problem has been solved but no one in this forum is an idiot. We all come here to help or ask questions so don't feel the need to call yourself stupid because remember this one thing... We were in your position at least once in our lives.

If you are unsure about how commands work you can go to

www.compsci.ca/holtsoft/doc


Thanks tjmoore! I'll use the website for any command needs in the future.
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  [ 7 Posts ]
Jump to:   


Style:  
Search: