Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //func to change name of file
- string change(string nameOfFile)
- {
- /* code to change all '.' and '_' to ' ' */
- istringstream in(nameOfFile);
- vector<string> arr;
- string temp;
- while(in >> temp)
- {
- arr.push_back(temp);
- }
- /* change arr elements */
- string result;
- for(auto str : arr)
- {
- result += str + " ";
- }
- /* code to delete last ' ' */
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement