C++语言开发示例:02. 定义变量
2024-07-11 09:03:03 2025-02-01 20:10:24 李腾 23 次阅读 0 次点赞
carrot.cpp
#include <iostream>
int main()
{
using namespace std;
int carrots;
carrots = 25;
cout << "I have ";
cout << carrots;
cout << " carrots.";
cout << endl;
carrots = carrots - 1;
cout << "Crunch, crunch. Now I have " << carrots << " carrots." << endl;
}
本文由人工编写,AI优化,请仔细甄别,转载请注明转自www.hylab.cn,原文地址:C++语言开发示例:02. 定义变量