std::vector<std::string> result = {};
std::stringstream data(fPath);
std::string line;
while(std::getline(data,line,'\\'))
{
result.push_back(line);
}
for(std::string i : result)
std::cout << i << std::endl;
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme