iterator for loops

I decided to switch the vector into a char array since I will need it in that form for other tasks I need to do.

I do not know why when switching my range based loop to just use std::begin and std::end that my compiler is saying there is no call function for 'begin'.

Last edited on

for (auto fullnames = begin(*var); fullnames != end(*var); fullnames++)
Doing that will causes my fullnames.substr(lastname.size() +firstname.size()) to error.
I do not understand why you deleted the definition of music from the original post. It seems it was defined as a two-dimensional character array. In this case filename has type char *.
Last edited on
Last edited on
Topic archived. No new replies allowed.