摘要: 练习12.33 为QueryResult类添加begin和end成员,返回lines的指定位置,再添加get_file成员,返回成员file的shared_ptr指针 #ifndef QUERYRESULT #define QUERYRESULT #include <string> #include 阅读全文
posted @ 2022-08-11 19:04 yddl 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 练习12.27 TextQuery和QueryResult类只使用了我们已经介绍过的语言和标准库特性。 main.cpp #include<iostream> #include <string> #include <vector> #include <fstream> #include "Query 阅读全文
posted @ 2022-08-11 16:17 yddl 阅读(27) 评论(0) 推荐(0) 编辑