← 返回教程列表
🔷 C++ 教程
基础语法
#include
using namespace std;
int main() {
int x = 10;
string name = "C++";
for (int i = 0; i < 5; i++) {
cout << i << endl;
}
if (x > 5) cout << "大于5" << endl;
return 0;
} #include
using namespace std;
int main() {
int x = 10;
string name = "C++";
for (int i = 0; i < 5; i++) {
cout << i << endl;
}
if (x > 5) cout << "大于5" << endl;
return 0;
}