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

Username:   Password: 
 RegisterRegister   
 HELP on Input Process! PLEASE READ!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
d3c0d3d




PostPosted: Tue Jan 13, 2004 5:43 pm   Post subject: HELP on Input Process! PLEASE READ!

okay this is the situation...i ask the user someting...then i put 'get ANSWER'....my question is how do you over right the first line with your second question so that the first line will disappear and you can see the second line?...if u know what i mean please help...if not then give me hints...thanks a bunch people!
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Jan 13, 2004 6:36 pm   Post subject: (No subject)

you can ether use cls to clear the screen and start from the top, or use locate(row,column) to locate output to a specific point.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
DanShadow




PostPosted: Tue Jan 13, 2004 7:40 pm   Post subject: (No subject)

Yeah, like this:
code:

var answer:string:=""
for i:1..2
locate(1,1)
if i=1 then
put "What color is the sky: "..
get answer
elsif i=2 then
put "Why do clouds rain: "..
get answer
end if
end for

The locate commands is really easy and useful for this. Or as tony says, cls works too. or if you want, you could combine them, to cls, and locate the text, Wink
d3c0d3d




PostPosted: Tue Jan 13, 2004 7:45 pm   Post subject: (No subject)

yea but you can still see the first question thats on the background..anyone got any other ideas?
Andy




PostPosted: Tue Jan 13, 2004 7:54 pm   Post subject: (No subject)

as tony said... cls to clear the screen
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  [ 5 Posts ]
Jump to:   


Style:  
Search: