![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Random command | melaz | Shell Programming and Scripting | 1 | 07-10-2008 08:24 PM |
| FTP random files | whegra | Shell Programming and Scripting | 3 | 11-21-2007 05:22 PM |
| Random | keyvan | Shell Programming and Scripting | 8 | 05-24-2007 12:11 PM |
| Getting a random file | davidY | Shell Programming and Scripting | 6 | 01-01-2007 05:03 AM |
| random in ksh | pascalbout | AIX | 1 | 01-04-2006 10:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi Aigles
My problem is my program has to prompt a user to do a guess game. The user has to guess a letter from a word that the program randomly chooses and then set a number of lives.
If the user guesses a letter correctly, the letter is displayed within the correct position in the word. i.e pls enter your guess letter: ----- if the word is hello for example, the user enters e then the output has to look like this pls enter your guess letter:-e--- so each dash has to be replaced by the letter and if any guessed letter is wrong, a message should be displayed saying wrong letter: you have 4 lives left |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|