I have to use an input command, where the value I enter can be null (press enter), or some value.

I tried using cin >> (but this requires that I enter at least one alphabet)

scanf("%s", x) // same problem

getch() and then putch() if I use this, I cannot use backspace to erase what had been written earlier.

Any suggestions?
Shilpi