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

Username:   Password: 
 RegisterRegister   
 Type-Writing Code?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Namis




PostPosted: Thu Sep 11, 2003 8:22 pm   Post subject: Type-Writing Code?

I was wondering if anyone has done a type-writing code or something
using character set 176/177/178 before?

if so, wanna explain how you would go about doing so?
Sponsor
Sponsor
Sponsor
sponsor
AsianSensation




PostPosted: Thu Sep 11, 2003 9:03 pm   Post subject: (No subject)

a what? please elaborate...

there is something called chr that outputs symbols...

code:
put chr (177)


this outputs the plus or minus symbol I believe...
Namis




PostPosted: Fri Sep 12, 2003 2:45 pm   Post subject: (No subject)

Well (176-78 are bars )

Ill try it out, and post my results, so you can understand what i mean better.

Edit

Well i cant find the proper chr, ill have to run through afew of them i suppose, my textbook is wrong.

Found out that im not looking for chr ( not ASCII values returned by getch) The Turing Character Set
1= Smiley Emoticon
2= Circle
3= Heart
Etc Etc
176/177/178 = Bar ||

Anyway im guessing the code would look like this. X meaing the bar chr

put chr (X)
delay (20)
put " B"
put chr (X)
delay (20)
put " L "
put chr (X)
delay (20)
put " A "
put chr (X)
delay (20)
put " H "
put chr (X)


you get the idea, maybe there is an easier way to do it, i dont know.
It should give it the effect of the bar being infront of the letter before you type it?

Im having trouble explaining it, as you surely see.
PHP God




PostPosted: Sat Sep 13, 2003 10:54 pm   Post subject: (No subject)

code:

put chr (X)..
delay (20)
put " B"..
put chr (X)..
delay (20)
put " L "..
put chr (X)..
delay (20)
put " A "..
put chr (X)..
delay (20)
put " H "..
put chr (X)


and thus it is done.
Namis




PostPosted: Sun Sep 14, 2003 9:57 pm   Post subject: (No subject)

So does anyone know the character set for bar? my book says its 176/177/178 yet it brings up the ascii character set.
PHP God




PostPosted: Mon Sep 15, 2003 6:52 am   Post subject: (No subject)

idk man. thats weird.
Mazer




PostPosted: Mon Sep 15, 2003 7:25 am   Post subject: (No subject)

i'm not quite sure i understand what you're asking. but if you're asking for the character code for "|", it's 124. so, put chr(124) will output "|"
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: