- 博客(1)
- 收藏
- 关注
原创 String类定义
解释char& operator[](int i) 实现返回String对象下标为i的字符;String& operator=(const String& a) 实现对象间的赋值操作,注意防范String对象对自身的赋值;String operator+(const String& a,const String& b) 实现两个String对象的连接操作,并返回结果;
2024-05-11 12:13:22
496
1
空空如也
6-3 String类定义
2024-05-11
String类定义PTA
2024-05-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人