greeter.cpp
来自「C++ sample code, for the book: C++ blac」· C++ 代码 · 共 22 行
CPP
22 行
#include <iostream>
using namespace std;
// Test out the for loop.
int main()
{
int number;
cout << "How many times do you want to see the greeting? ";
cin >> number;
for (int loopIndex = 0; loopIndex < number; loopIndex++){
cout << "Hello from C++." << endl;
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?