I've just started to learn C++ and I don't understand this error:
std::string AFunction(const std::string& str) {
size_t s = str.length();
char inProgress[s];
return std::string();
}
I get the error:
error C2131: expression does not evaluate to a constant
Here: char inProgress[s];
What do I have to do the set inProgress size with the length of str?