diff --git a/parse_pages.cc b/parse_pages.cc index 581912c..c855eb1 100644 --- a/parse_pages.cc +++ b/parse_pages.cc @@ -51,6 +51,9 @@ int main() std::ofstream post_file; post_file.open(filename); post_file << ""; + post_file<<""; + post_file << post["title"].GetString(); + post_file <<""; post_file << post["html"].GetString(); post_file <<""; post_file.close(); diff --git a/parse_posts.cc b/parse_posts.cc index 3dbf6b5..c7a083b 100644 --- a/parse_posts.cc +++ b/parse_posts.cc @@ -47,11 +47,14 @@ int main() std::string postid = post["id"].GetString(); std::cout<< postid <<": "<"; post_file << post["html"].GetString(); + post_file <<""; + post_file << post["title"].GetString(); + post_file <<""; post_file <<""; post_file.close(); }