#include <iostream>
int main()
{
using namespace std;
int carrots;
cout << "how many carrots do you have?" << endl;
cin >> carrots;
cout << "here are two more.";
carrots = carrots + 2;
cout << "Now you have " << carrots << "carrots." << endl;
return 0;
}
按理说我应该看到这样的结果:
how many carrots do you have?
12
here are two more.now you have 14 carrots.
但是我只有这一行
how many carrots do you have?
底下的就没有了