不影响正常运行,只是好奇为什么会这样
#include <iostream>
int main()
{
using namespace std;
int carrots;
cout << "How many carrots do you have? " << endl;
cin >> carrots;
carrots = carrots + 2;
cout << "I have two more here. Now you have " << carrots << "carrots. " << endl;
cin.get();
return 0;
}
以下是运行结果:
“Now you have ” 这里换行了,可是代码里此处并没有换行符