Write a C++ program that declares a secret word of 5 character and ask the user to find out that word . if the word entered by the user a character is in its correct position then it will appear , otherwise a star will be shown in its location. For example if the secret word is write and the user entered the word think then the program will display **i** . Then if the user enter the word arrive then the program will display *ri** ( the position of the character I was discovered in the pervious step) This process will continue till the user finds the correct word
Comments
Leave a comment