i want to write acode to read the number of words in aline using (cin.getline)with an array char x[80].can any one help
Printable View
i want to write acode to read the number of words in aline using (cin.getline)with an array char x[80].can any one help
what I picked up from that:
You want to read in words from a line, and then count how many words there are?
If so, you can try a search, there have been many threads about this.
But try it, then post some code, and we'll be glad to help.