PLEASE ALWAYS USE CODE TAGS (the <> formatting button), to the right of this box, when posting code. Along with the proper indenting it makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/ Hint: You can edit your post, highlight your code and press the <> formatting button. You can use the preview button at the bottom to see how it looks. I found the second link to be the most help. |
void combinacion()
. Since "fact" and "operation" are global variables the whole file has access to them. By passing them to a function you create local variables to that function which overshadows the global variables.void combinacion(std::vector<std::string> fact, std::vector<std::string> operacion)
.const std::vector<char> operacion{'+', '-' ,'*', '/', '^', 's'};
If your idea is for the user to enter information that will end up in "operation then it would be:std::vector<char> operacion;
. Since most of the operators are a single character this would work better as a type "char" and for "sin" just use "s".
|
|
error: no match for call to I don't know what it means |