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

Username:   Password: 
 RegisterRegister   
 i am new here help me some1
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
baby girl




PostPosted: Wed Nov 13, 2002 4:41 pm   Post subject: i am new here help me some1

write a program that outputs a cats face at the center of the window, erases it when you type the letter E and then plots it again when you type the letter P
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Nov 14, 2002 1:20 am   Post subject: (No subject)

--------------------
---|\___/|---------
--|--o-o--|--------
---\xxiixx/--------
------LI------------
-----/``\-----------
---oo___oo--------

DAMN IT, why can't you people just load a jpg picture of a normal cat? Grr... ASCII graphics are OVER! Noone is using them anymore... Anyone heard of something called DirectX ?!?!?!
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
baby girl




PostPosted: Thu Nov 14, 2002 2:47 am   Post subject: (No subject)

i get that part but its the code part i don't know can u help me with that
Tony




PostPosted: Thu Nov 14, 2002 5:03 am   Post subject: (No subject)

oh... well its something like this:

code:

var ans: char(1)
loop
getch ans

if ans = "e" then
cls 'clears screen if e is pressed

elsif ans = "p" then
put "ASCII drawing of cat here" 'draws cat is p is pressed

end if

end loop


hope this helps Very Happy
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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: