Hello again everyone!
I have another question: is there any way to split a string?
string = "C:\\Program Files\\Projects\\C++\\Folder\\"
I want to know if there is any way to split this into something like:
str1 = "C:"
str2 = "Program Files"
str3 = "Projects"
str4 = ...
Thank you!
this code adds those smaller strings into separate variables? (str1,str2,str3,...)
This code adds the smaller strings into a std::vector. You can extract them later into separate variables from it if you really need/want.
Ok, i'm back again. I've been searching how to extract elements from a vector but i didn't find anything useful.
Can you please tell me how can it be done?
Last edited on
Lines 29 to 32 should give you some sort of idea.
Thank you very much, I should have spent more time inspecting this code.
Thanks again!