# include
Int main ()
{
using namespace std;
Cout & lt; <"What year was your house built? \n";
Int year;
(cin & gt;> Year). The get ();
Cout & lt; <"What is its street address? \n";
Char address [80].
Cin. Getline (address, 80);
Cout & lt; <"Year built:" & lt;Cout & lt; <"Address:" & lt; Cout & lt; <"Done! \n";
system("pause");
return 0;
}
CodePudding user response:
When entering year after system will automatically enter a newline symbol as empty line assigned to array theHow to modify
CodePudding user response:
I test no problem? What platform are you using? Or do you press the two carriage returns? According to the space between the number and press enter or other invisible characters?