This line:
strcat(query,*it);
(where *it is an iterator to a string)
Keeps giving me this error:
no matching function for call to \
`strcat(char[200], const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)'
I guess it's because strcat takes in a char* while *it is a string.
How do I convert it from a string to a char* to make it work with strcat() ?
I've tried strcat(query,(*it).c_str()) but that just gives me a runtime error.
Edit: sorry, it should be converted to a const char*