是一个调用自定义函数的例子。
#include<iostream>
void simon(int);
int main()
{
using namespace std;
simon(3);
cout << "Pick an integer:";
int count;
cin >> count;
cimon(int);
cout << "Done!" << endl;
return 0;
}
void simon(int)
{
using namespace std;
cout << "Simon says touch your toes" << n << " times." << endl;
}