#pragma region carropts.cpp
//carrots.cpp -- food processing program
//uses and displays a variable
#if 1
#include <iostream>
int main(void)
{
using namespace std;
int carrots; //declare an integer variable
carrots = 25; //assign a value to the variable
cout << "I have ";
cout << carrots; //display the value of the variable
cout << " carrots.";
cout << endl;
carrots = carrots - 1; //modify the variable
cout << "Crunch ,crunch . Now I have " << carrots << " carrots." << endl;
return 0;
}
#endif
#pragma endregion
运行测试结果,如下

2914

被折叠的 条评论
为什么被折叠?



