Hi people I'm in urgency, I got an exam on monday with C++ and I might get a thing like
there is a sentence like "Jack went fishing on monday", and I need to count the number of
"m","e","a"s etc in it, I suspect you got to type a string with the sentence, then to insert it into a char array, and then do a linear search for the letters, but I don't know how to type a string WITH spaces in a way that the compiler doesn't forget that he needs to take every single word, not just the first, cuz when I type a string type element only the first element seems to considered by the compiler.
Second I've used the string.copy(chararray,20); thing and it works only for words not for a whole sentence with spaces, how do I do that ?? please it's very important for me thank you a lot.
PS:I believe you can put the words in a file then get the file with getline, but can't this whole file procedure be avoided ?