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

Username:   Password: 
 RegisterRegister   
 password
Index -> Programming, Turing -> Turing Help
Goto page 1, 2, 3  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
beedub




PostPosted: Fri May 23, 2003 8:27 am   Post subject: password

hey all....
i was wondering if there was any way when a user enters in a code it just puts the char "*" but it still has the value of the letter inputted.
ty
Sponsor
Sponsor
Sponsor
sponsor
Solo




PostPosted: Fri May 23, 2003 9:33 am   Post subject: Hidden Password

code:
 
var key:string(1)
var password:string

  loop
        getch (key)
        exit when ord (key) = 10
        put "*" ..
        password += key
    end loop


This should do what you want.
Prince




PostPosted: Fri May 23, 2003 10:15 am   Post subject: (No subject)

haha, that doesnt work solo... i tested and it crashed hardcore Razz
Tony




PostPosted: Fri May 23, 2003 11:02 am   Post subject: (No subject)

you forgot to initialize password to ""
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Solo




PostPosted: Fri May 23, 2003 12:58 pm   Post subject: wow

What i find really amusing is, that instead of fixing it, or offering advice, you decide to laugh, and make a dumbass comment.. it crashed "hardcore"?

anyway, just replace

var password:string

with

var password:string:=""

....


anyway, what a wonderful person in the community prince is Smile
Tony




PostPosted: Fri May 23, 2003 4:31 pm   Post subject: (No subject)

Quote:
what a wonderful person in the community prince is


and his avatar backs up your point too Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
beedub




PostPosted: Fri May 23, 2003 4:42 pm   Post subject: (No subject)

ty thats exacly what i want
Prince




PostPosted: Fri May 23, 2003 7:21 pm   Post subject: (No subject)

just so its known i truly resent thos comments made by solo and tony... mayb things would b better if i just left Crying or Very sad
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri May 23, 2003 7:24 pm   Post subject: (No subject)

please dont leave Sad You're the owner of the world's coolest avatar (after octopi's) Wink
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Prince




PostPosted: Fri May 23, 2003 7:26 pm   Post subject: (No subject)

do i sense sarcasm in that last sentence
Martin




PostPosted: Fri May 23, 2003 9:43 pm   Post subject: (No subject)

Let's use this post to start a friendly flame war between the two of you and we can watch (I won't let Asok lock the topic).
Martin




PostPosted: Fri May 23, 2003 9:44 pm   Post subject: (No subject)

Err, forget the friendly part. And solo, forget the flaming and start programming or I'll ban you.
Blade




PostPosted: Fri May 23, 2003 10:26 pm   Post subject: (No subject)

heh. worlds coolest avatar. whatever
Prince




PostPosted: Fri May 23, 2003 11:07 pm   Post subject: (No subject)

dah well, u dont like my av its too bad for u... deal wit it... it aint like urs is immensely great blade
Martin




PostPosted: Fri May 23, 2003 11:13 pm   Post subject: (No subject)

My avatar beats them both.
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 3  [ 32 Posts ]
Goto page 1, 2, 3  Next
Jump to:   


Style:  
Search: