Hello, everyone. How do I use the printf() function to print the following (only the part between double quotes) and then wait for input over the __ part, but without deleting it before the actual input?
"Please enter an integer: __"
Thanks in advance!
I would say that this is not possible in standard C...
You could try something like this (but add error checking to scanf()):
On the other hand, I wouldn't bother - it's more "normal" for people to see a prompt with no underscores when typing at a terminal, and going along the path of least surprise for your users is always a good thing.
printf("Got: %d\n", i);
Apparently I was wrong :)
Thanks John :)