摘要: Copy Constructions (拷贝构造) 拷贝构造:用一个对象初始化另一个同类对象 拷贝构造函数可以简写为 copy ctor,或者 cp ctor。在Unix/Linux中,拷贝文件的命令叫做 cp。 如何声明拷贝构造函数(copy ctor): Circle (Circle&); Ci 阅读全文
posted @ 2022-12-06 23:21 blogzzt 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 1. Developing generic function (设计泛型函数) 1.1. Steps (步骤) (1) To start with non-generic function (先设计/编写一个非泛型函数) (2) To debug and test it (调试/测试该函数) (3) 阅读全文
posted @ 2022-12-06 21:09 blogzzt 阅读(13) 评论(0) 推荐(0) 编辑