You can do this with any compiler and any IDE. Just use the standard time() function in a loop to implement the delay.
To Ben: I know there are better ways but for someone who learns the language I doubt there is any point in using platform dependent sleep functions. Also if this is an assignment and the teacher hasn't mentioned the Sleep function I doubt they expect them to use it.
Since it's a rather simple program, I've written it for you to study.
For simplicity, I just used Sleep() to wait for 5 sec AFTER erasing each character.
For better accuracy, you might need to look into those functions under <time.h>.
Thank you all for the help . the code is working But Can You make it start the erasing from the end of the name?
for example if i write John it will start erasing from n to j.