上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 56 下一页
摘要: ▲ 《C++ Primer》 P328 阅读全文
posted @ 2024-10-03 14:14 double64 阅读(6) 评论(0) 推荐(0)
摘要: string 构造: ▲ 《C++ Primer》 P321 string 裁剪: ▲ 《C++ Primer》 P322 修改 string 的操作: ▲ 《C++ Primer》 P323 string 的搜索操作: ▲ 《C++ Primer》 P325 string 的 compare 函数 阅读全文
posted @ 2024-10-03 14:12 double64 阅读(11) 评论(0) 推荐(0)
摘要: ▲ 《C++ Primer》 P314 ▲ 《C++ Primer》 P318 阅读全文
posted @ 2024-10-03 13:55 double64 阅读(7) 评论(0) 推荐(0)
摘要: ▲ 《C++ Primer》 P313 阅读全文
posted @ 2024-10-03 13:49 double64 阅读(14) 评论(0) 推荐(0)
摘要: ▲ 《C++ Primer》 P311 阅读全文
posted @ 2024-10-03 13:48 double64 阅读(14) 评论(0) 推荐(0)
摘要: 《C++ Primer》 P310 阅读全文
posted @ 2024-10-03 13:40 double64 阅读(9) 评论(0) 推荐(0)
摘要: ▲ 《C++ Primer》 P305 阅读全文
posted @ 2024-10-03 13:37 double64 阅读(12) 评论(0) 推荐(0)
摘要: 在4.11.3节(第145页)中我们说过,const_cast 在重载函数的情景中最有用。举个例子,回忆6.3.2节(第201页)的shorterstring 函数: //比较两个string对象的长度,返回较短的那个引用 const string &shorterString(const stri 阅读全文
posted @ 2024-09-29 15:51 double64 阅读(13) 评论(0) 推荐(0)
摘要: ▲ 《C++ Primer》 P302 assign list<string> names; vector<const char *> old_c_str{ "娃哈哈", "孟菲斯", "Hello Wold!" }; names.assign(old_c_str.cbegin(), old_c_s 阅读全文
posted @ 2024-09-27 22:09 double64 阅读(11) 评论(0) 推荐(0)
摘要: ▲ 《C++ Primer》 P299 阅读全文
posted @ 2024-09-26 08:07 double64 阅读(11) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 56 下一页