Stringstream: cuts the string into parts by space
Stringstream gets the input of string (line). Then it cuts based on space. I used it when getting rows of integer in one line, cut by one number(formatted in string) using stringstream, and changed into int using atoi( [name_of_string].c_str()) using a while loop. I used atoi( [].c_str) because the version of c++ was below 11. This is the sample code: #include #include #include //for stringstrea..
c++
2020. 7. 19. 00:54