I have a problem, I to need clean part of the screen instead of all.
For example:
#include <iostream>
using namespace std;
int main ()
{
string name, city;
int age;
cout<<"Enter your name"<<endl;
cin>>name;
cout<<"Enter your age"<<endl;
cin>>age;
cout<<"Enter your city"<<endl;
cin>>city;
cin.get();
cin.get();
return 0;
}
Suppose the user enter a number in the city variable, I can create a condition If to clean the screen, but I don't want to clean everything, only the last part.