Hi Guys,
I need to be able to print something like:
Player 2: Enter a word (1-20 char,blank line to quit):
and then right after I have entered the word the output should look like :
Player 2: Enter a word (1-20 char,blank line to quit): apple
My printf looks like the below:
printf("Player 2: Enter a word (1-20 char,blank line to quit): \n");
So I wonder what do I need to do to be able to keep the cursor at the end of the output of my printf and also what do I need to do to print the contents of WORD within double quotes as below:
"apple" is not in the dictionary .
This is the printf for the output display before:
printf("%s is not in the dictionary . Player 2 wins! \n",WORD));
Thanks guys.
Best regards.
harbry
Note: WORD is defined as char WORD[20];