自考新教材--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;

}

运行结果:

posted @ 2019-12-02 10:42  bobo哥  阅读(130)  评论(0编辑  收藏  举报