thinking in C++ 读书日志(七)

版权声明:转载请注明出处:苏冉旭的博客 http://blog.csdn.net/suranxu007/ https://blog.csdn.net/suranxu007/article/details/1732706

第七章 函数重载与默认参数

  游泳回来,好累。第七章完成,写上来吧。

推荐看点:

1、       函数重载

我想多数同学对此都已经很熟悉了,这里就不说了。

1.         默认参数

函数“多态”的另一种形式

3、 占位符参数

一个很可爱的参数,这样的声明见过吗:void f(int a,int=1,int=2);

4<cstring>memcpy()函数

这个不受strcpy中‘/0’的影响。

呵呵,只说这么多吧。

 

猜你喜欢

转载自blog.csdn.net/suranxu007/article/details/1732706