自考新教材--36
源程序:
#include <iostream>
using namespace std;
void func(int a = 11, int b = 22, int c = 33)
{
cout << "a=" << a << ",b=" << b << ",c=" << c << endl;
}
int main()
{
func();
func(55);
func(77,99);
func(8,88,888);
system("pause");
return 0;
}
运行结果: