#include<iostream>
using namespace std;
//01无参无返
void test01()
{
cout << " This is test01 " << endl;
cout << "test01输出的语句为:用我熟练的刀法,把坏人全部讨伐" << endl;
cout << endl;
}
//02无参有返
int test02()
{
cout << " This is test02 " << endl;
return 99;
}
//03有参无返
void test03(int num1)
{
cout << " This is test03 " << endl;
cout << "test03=" << num1 << endl;
cout << endl;
}
//04有参有反返
int test04(int num1,int num2)
{
cout << " This is test04 " << endl;
int sum = num1 + num2;
return sum;
}
int main()
{
//调用01函数
test01();
//调用02函数
int ret = test02();
cout << "test02=" << ret << endl;
cout << endl;
//调用03函数
int a = 100;
test03(a);
//调用04函数
int b = 500;
int c = 20;
int sum = test04(b, c);
cout << "test04的结果为:" << sum << endl;
cout << endl;
system("pause");
return 0;
}