Skip to content

Commit

Permalink
Fix a typo in C++.md
Browse files Browse the repository at this point in the history
Fix a typo in C++.md.
  • Loading branch information
lioncruise authored Apr 9, 2018
1 parent 2f08d2e commit de754f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 编程语言C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ C/C++的内容又多又杂,常常看到有人罗列相关书单,觉得毫无
- 形参传递是调用拷贝构造函数(调用的被赋值对象的拷贝构造函数),但并不是所有出现"="的地方都是使用赋值运算符,如下:

Student s;
Student s1 = 2; // 调用拷贝构造函数
Student s1 = s; // 调用拷贝构造函数
Student s2;
s2 = s; // 赋值运算符操作

Expand Down

0 comments on commit de754f6

Please sign in to comment.