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

Username:   Password: 
 RegisterRegister   
 Typewriter print
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
chalcids




PostPosted: Tue Dec 20, 2011 6:16 pm   Post subject: Typewriter print

I want my program to type the text out like a typewriter. how do i do that like
http://objection.mrdictionary.net/go.php?n=5444134
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Dec 20, 2011 6:18 pm   Post subject: RE:Typewriter print

put, maybe some delay
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
trishume




PostPosted: Tue Dec 20, 2011 7:06 pm   Post subject: Re: Typewriter print

Maybe something like this:

code:

proc TypewriterPrint(text : string)
  for i : 1..length(text)
    delay(500)
    put text(i) ..
  end for
  put ""
end TypewriterPrint

TypewriterPrint("This will be printed like a typewriter")


WARNING: I haven't tested this so it may not work
Alex C.




PostPosted: Wed Jan 11, 2012 9:40 pm   Post subject: Re: Typewriter print

trishume @ Tue Dec 20, 2011 7:06 pm wrote:

WARNING: I haven't tested this so it may not work


It does Very Happy
Idea however, if someone can make the sound effect like in the animation, that would be a better effect!
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: