⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ourfunc.cpp

📁 一本很好的C++学习的丛书!初学者必看的
💻 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 + -