#pragma region getinfo.cpp
//getinfo.cpp -- input and output
#if 0
#include <iostream>
int main(void)
{
using namespace std;
int carrots;
cout << "How many carrots do you have?" << endl;
cin >> carrots; //C++ input
cout << "Here are two more. ";
carrots = carrots + 2;
//the next line concatenates output
cout << "Now you have " << carrots << " carrots." << endl;
return 0;
}
#endif
#pragma endregion
手动输入20后,进行+2,在输出