I've been running around like crazy trying to find anything on this problem and so far have found nothing.
I have a function in console to update a record in a file and waht I want to do is when it asks for the updated input it displays the existing value
When input is requested you have
Name: James_
instead of
Name: _
and then you can edit the existing name as if you had typed it yourself.
Here is a snippet of what I currently have, just asking for input.
do
{
cout << "Please enter client details" << endl
<< "Name:" << endl
<< "Age:" << endl
<< "Rating (0.0 to 1.0):" << endl;
gotoxy( 7, 2 );
cin >> temp.name;
gotoxy( 6, 3 );
cin >> temp.age;
gotoxy( 22, 4 );
cin >> temp.rating;
cout << endl << "Is this correct? (y/n): ";
choice = getch();
while ( choice != 'y' && choice != 'n' )
choice = getch();
} while ( choice != 'y');