C++ need help with arrays ( i think it must be done with arrays )
Posted on 2007-10-20
I am learning c++ . And i got task.
"In which given sentence word are most letters "a" ?"
It means that, when you write "Yesterday i ate Bananas", and it should give answer.
"The most letters "a" is in word Bananas".
i`m still learning that, but i don`t know how to do that. I googled alot, but still no answers, so i am trying my luck here.
And here is what i done
using namespace std;
int i,n , m, length;
int main ()
cout << "Enter Sentence:\n";
i = s.length();
cout << "You entered:" << s <<;