Great, I will try it tomorrow.![]()
Great, I will try it tomorrow.![]()
guessed_chars_so_far = 0;Originally Posted by Blodrast
while (guessed_chars_so_far < strlen (wtbg))
{boolean guessed = false;------------------------------------------------------------------while (guessed == false)}
{cout << "Guess character in position " << guessed_chars_so_far << endl;}
cin >> c;
if (c == wtbg[guessed_chars_so_far])
{
cout << "Correct !" << endl;}
guessed = true;
guessed_chars_so_far ++;
else
{cout << "Wrong guess, let's try again " << endl;}
Like this? ...![]()
Status Emeritus
![]()
gasp!
what is the secret ?! It took me longer to indent the stuff than it took to write the damn thing...
Therapy helps, but screaming obscenities is cheaper.
Update:
It works!!!(well more or less)
There are a few bugs to work out, I should be able to work these out by myself, if I can't there is always you guys.![]()
great, good to hear :)
Therapy helps, but screaming obscenities is cheaper.
Bookmarks