From 8f4cb5b2304fe3c01239456f96a8f440adf56101 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Mon, 20 Nov 2023 19:53:07 -0500 Subject: [PATCH] adding the word next --- hws/09_tiktok_trends/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hws/09_tiktok_trends/README.md b/hws/09_tiktok_trends/README.md index 5370fdc..b0c2081 100644 --- a/hws/09_tiktok_trends/README.md +++ b/hws/09_tiktok_trends/README.md @@ -219,7 +219,7 @@ this basically is the trending sounds, each is associated with some videos. In y ### getline -**Note**: this paragraph is the same as that paragraph in homework 8, and you are once again recommended to read the whole file into a large string; but if you want to beat Jidong on the leaderboard, whether or not this is the most efficient way to read the file is a question for you to think about. +**Note**: this next paragraph is the same as that paragraph in homework 8, and you are once again recommended to read the whole file into a large string; but if you want to beat Jidong on the leaderboard, whether or not this is the most efficient way to read the file is a question for you to think about. Unlike previous assignments where the input files only contain fields separated by spaces, in this assignment, fields are not separated by spaces, and therefore you may need a different way to read the input files. And the function *getline* will now come into play. To read the json file and store the whole json file into a std::string, you can use the following lines of code: