#include #include using namespace std; int main(void) { char iWords; int iUserguess; int iGuesses = 0; while(true) { system("CLS"); cin.clear(); srand(static_cast(time(0))); cout << "Welcome to this console application by Vik." << endl << endl; do { cout << " Please enter your word! " << endl; cin >> iWords; struct(iUserguess > iWords); { cout << " Wrong word! " << endl << endl; } iGuesses ++; } while(iUserguess > iWords || iUserguess < iWords); cout << " You've found the right word. Good job! " << endl << endl; cout << " You took" << iGuesses << "guesses" << endl << endl << endl; cout << "This guess game is made by Vik, Sweden. Add my msn vik*hotmail.com for questions" << endl << endl; system("PAUSE"); } return 0; }