In a game of Hangman, a setter of the word/phrase is required to enter a phrase. However, I was wondering if there was any way to input data blindly, so that the guesser cannot see the phrase getting typed in. An example of its use would be passwords being entered.
harish92 0 Newbie Poster
Recommended Answers
Jump to PostFlamingClaw's example is for using an editbox in a Form application. Are you creating a form or are you doing a consule application?
Jump to Postprogram echostar; uses Crt; const EnterKey = ord(13); var Entry :char; SecretMessage :string; begin ClrScr; SecretMessage := ''; Entry := ' '; writeln('Enter your secret word or message:'); repeat begin Entry := (Readkey); write('*'); if ord(Entry) <> EnterKey then SecretMessage := SecretMessage + Entry; end; until ord(Entry) …
All 6 Replies
FlamingClaw 98 Posting Pro
jsosnowski 1 Junior Poster in Training
harish92 0 Newbie Poster
glindhot 0 Newbie Poster
FlamingClaw 98 Posting Pro
FlamingClaw 98 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.