Computer Science Canada

i am new here help me some1

Author:  baby girl [ 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

Author:  Tony [ Thu Nov 14, 2002 1:20 am ]
Post 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 ?!?!?!

Author:  baby girl [ Thu Nov 14, 2002 2:47 am ]
Post subject: 

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

Author:  Tony [ Thu Nov 14, 2002 5:03 am ]
Post 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


: