#include<iostream>
using namespace std;
//函数的常见样式
//1.无参无返
void test01()
{
cout << "这是test01" << endl;
}
//有参无返
void test02(int a)
{
cout << "只是test02=" << a << endl;
}
//无参有返
int test03() //这个不能用void 因为void不接受int
{
cout << "介是test03" << endl;
return 500;
}
//有参有返
int test04(int a) {
cout << "这是test04=" << a << endl;
return 100;
}
int main() {
test01();
test02(10);
int num1=test03();
cout << "num1=" << num1 << endl;
int num2 = test04(10000);
cout << "num2=" << num2 << endl;
system("pause");
return 0;
}