Hey I'm new and I'm trying to reverse this string but it says repeatpls::reverse does not take 2 arguments? It's in my header file.. I'm assuming I have to add something in the parentheses after repeatpls::reverse but im not sure what :(
I'm assuming you're intending to use std::reverse. It's a function found in the <algorithm> header and is in the std namespace. Does that give you an idea of what's missing?
Ok I added #include <algorithm> and added std:: on line 25 so it says
std::reverse(words.begin(), words.end());
After that it works! But it only reverses the first word I type and doesn't even show the rest? Is there something I can do about that so it reverses a whole sentence instead of just the first word?