iwant to make a programme that will take a string from the user and its length isn't limitted but each word will be separeted by either ','or';' i want to split this string in 2d or 3d array how can i do so?
Check this link out; if you're using c-style strings (or you can easily convert a std::string into a c-style string), the strtok function should work nicely:
this is what i have done now my problem is that i want to find elements in str2D[j][2] and str3 is still unsplited what should i do?and how could i find elements in this array?