So I want to check if the string "picture" user inputs in the program contains any "illegal" characters. I also want to check if the vector<string> "edges" contains char '-'.This is a class' method function that is supposed the check that out. Input comes from another method function. This function gets information in the form Puzzle {edges, picture}. I don't know how should I write my code so that the search works. At the moment the find() function only gets empty parameters and that is why it doesn't work(tested it out with test prints).
I also want to check if the vector<string> "edges" contains char '-'
Clarify: should it be a string containing only a single character '-' or if there is a string containing character '-' somewhere in it (should "a-b" match or not)?
At the moment the find() function only gets empty parameters
It might be because your edges vector does not contain anything, as you did not place anything in it.