Question:
My code will not call itself, I am wondering why?
*reverse at the bottom says “reverse function doesn’t exist” while it’s right there
**assume “using namespace std;” and “#include <vector>
” are above
Edit: clarity, title fixed
Repl link:
https://replit.com/@QibliTheSandwing/Recursion-2#reverse.cpp
void reverse(vector<char> s){
if(s.size() == 0){
}
else{
cout << s[s.size()-1];
reverse(s.pop_back());
}
}