me:
double x, y, a, b, d, z, f;
cout << "tttCombustion of hydrocarbon: C_xH_y" << endl;
cout << " " << endl;
cout << " Input" << endl;
cout << "tX=";
cin >> x;
cin.ignore();
cout << "tY=";
cin >> y;
cin.ignore();
cout<<"tf=";
cin>>z;
cin.ignore();
I tried the cin.ignor but it doesnt work. sorry im just new to c++
New contributor
Adrienne Chatto is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.