So I was writing a function to remove all the vowels in a string, and I kept getting this error:
1 2 3 4 5 6 7
pa07.cpp:138:39: error: non-const lvalue reference to type 'std::string'
(aka 'basic_string<char>') cannot bind to a value of unrelated type
'const char [12]'
cout << csutilities::removeVowels("Hello wOrld") << endl;
^~~~~~~~~~~~~
pa07.cpp:110:39: note: passing argument to parameter 'str' here
std::string removeVowels(std::string& str)
I don't really understand it, if anyone could explain it, so I won't do it again, that would be amazing. Thanks for any help!