This is my code:
#include <iostream>
using namespace std;
int main ()
{
int edad;
string nombre;
cout<<"Hola mundo"<<endl;
cout<<"Como estan?"<<endl;
cout<<"Ingresa tu edad"<<endl;
cin>>edad;
cout<<"Ingresa tu nombre"<<endl;
cin>>nombre;
//Digamos que la persona ingreso numeros en el nombre
//Quiero borrar la ultima parte y no todo
return 0;
}
What I want to do is delete a line from the console, the above is just an example.
In a nutshell I do not want to make system ("cls")
just delete a part of the screen.
How do I do it?