line = "hello 2021" istringstream split_string(line); was a useful code to get the values from a string, i.e.
split_string>>str>>temp_double; However, suppose that the value of line was changed, i.e.
line="hello world" ,and one wanted to write the following code with the updated value of line.
split_string>>str1>>str2; How to update split_string so that it streamed the updated value of line?
https://stackoverflow.com/questions/66468370/istringstream-split-stringline-how-to-update-the-split-string-while-changing-l March 04, 2021 at 11:58AM
没有评论:
发表评论