How can I remove the line break when reading some variable with cin
?
#include <iostream>
using namespace std;
int main()
{
int dia, mes, ano;
cout<< "Data: ";
cin>> dia;cout<<"/"; cin>> mes;cout<<"/"; cin>> ano;
system("pause");
return 0;
}
Iwantittolooklikethis: