📄 ourfunc.cpp
字号:
// ourfunc.cpp -- defining your own function#include <iostream>void simon(int); // function prototype for simon()int main(){ using namespace std; simon(3); // call the simon() function cout << "Pick an integer: "; int count; cin >> count; simon(count); // call it again cout << "Done!" << endl; return 0;}void simon(int n) // define the simon() function{ using namespace std; cout << "Simon says touch your toes " << n << " times." << endl;} // void functions don't need return statements
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -