- 博客(2)
- 收藏
- 关注
原创 1001 A+B Format
1001 A+B Format (20 分) Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Specification: Each input file contains one test case. Each ca
2021-06-14 14:34:15
156
原创 C++中拷贝构造函数
拷贝构造函数(复制构造函数) 拷贝构造函数被调用的三种情况: (1) 一个对象以值传递的方式进入函数体,即函数的形参是类的对象(而非对象的引用),调用函数时,发生复制构造。 (2) 一个对象以值传递的方式从函数返回,即函数的返回值是类的对象,函数执行完成返回主调函数时,发生复制构造。 (3)一个对象用另一个对象初始化。 举例说明: #include<iostream> #include...
2020-03-19 12:10:39
217
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人