I am creating a program in which the user inputs a letter and a phrase and the comp outputs the amount of that certain letter in the phrase.
My code is as follows:
I changed the program up a little, because I want to start using getline() instead of cin >> let,text.
How exactly do I use it? I use getline(cin, let); and i come up with an error saying:
hw15.cpp:32: error: no matching function for call to âgetline(std::istream&, char&)â