How can you preset suggested text for a cin?

E.g.

cout<<"Old value is: "<<oldVal<<" New value: ";
cin.SetPrefixText(oldVal);
cin>>newVal;

So the user sees:

Old value is: Sam New value: Sam


So, in this made-up scenario the user can just hit the Enter key to keep the existing value.

Is this even possible?