Quote:Original post by MadsGustaf
i know that, im sorry for not explaining probaly, but i dont know how to 'convert' it.
This isn't really a relevant question here. This particular error is not a minor compiler nitpick (such as a missing '>', an unclosed comment, or some other stupid error), it's telling you that you said
one thing when declaring frame, and you're now saying
another thing when using frame. You're being inconsistent with yourself, which is a clear sign that you are confused about your own code (which is a dangerous thing). So, the question to be asked here is not about the conversion, but about why you're being inconsistent in the first places. Two simple questions, in fact:
Question 1: why does frame take a vector of strings as argument? You chose to wrote it that way, so why?
Question 2: why are you trying to call frame on a line that was just read from standard input?
Asking these questions should reveal that you either incorrectly designed frame (so it should take a string as argument, instead of a vector of strings), or that you are incorrectly using it, and you should be calling another function, or passing another argument.