I implement the shunting yard algorithm. When I run the program the error "The expression must have a constant value" comes out. How do I get the value of the length variable into the correct form?
int length = infix.length();
char input[length +1];
strcpy(input, infix.c_str());
The error appears here: char input[length +1];