![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| null string matching in sed? | Allasso | Shell Programming and Scripting | 6 | 05-30-2008 08:44 PM |
| String matching | mpang_ | Shell Programming and Scripting | 3 | 07-28-2006 06:45 AM |
| sed problem - replacement string should be same length as matching string. | amangeles | Shell Programming and Scripting | 4 | 01-11-2006 06:11 AM |
| SED: Matching a string with whitespace? | cstovall | Shell Programming and Scripting | 1 | 06-07-2005 04:32 PM |
| matching alphanumeric string | sskb | Shell Programming and Scripting | 4 | 12-12-2001 10:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello,
i have a program where i have to get a character from the user and check it against the word i have and then replace the character in a blank at the same position it is in the word. Last edited by nehaquick; 02-18-2008 at 04:45 PM.. |
|
||||
|
Quote:
![]() |
|
||||
|
dear robotronic
thanks a lot for the reply. its working correctly but its still asking for another character even when the word is there. i think more needs to be put in the while condition. apart from that as evident its a game, i have to keep a count of no of guesses by the user and as well as the lives the user lost(wrong guesses). i dont know where to update those variables in the current loop. thanks in advance Last edited by nehaquick; 02-18-2008 at 05:02 PM.. |
|
||||
|
Thanks Joeyg,
the program is working fine but another requisite was that i have to count the no of wrong guesses as well and deduct it from the no of lives given to the user. these lives are user defined. the control should move out of the while loop as soon as the word is found or the no of lives are finished. even otherwise if the word is guessed correctly it should show that in how many attempts(which the program is doing) and how many loss of lives the user has guessed it. thanks in advance |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|