i am kinda of on the right path i think. the problem is i am reading the number of characters in a file but i want to count the number of words in a file and when i do that . i want to use a string and i want to count the number of 5 letter words and the number of 6 or greater words and display them at the end. this is what i got and the output i get is : 1 and thats not right or what i wanted
i dont know if the string deceleration is right to accomplished this
Line 24 might look better like this: cout << "The number of characters is: " << numb_char << endl;
Notice the white space after the ':' and before the double quotes.
yeah i think gcount or istream& get ( char& c ) or istream& get (char* s, streamsize n ). is what i need to use cuz i want to read the file and then count the number of 5 letter words or less and count the number of 6 or greater words in the file. but i really dont understand how i will put in the program .