Hi,
Can someone help me in a borland c++ code?
i already have a memo field and i want to count the words, i count the blanks but i have problem when appears 2 or more blanks together and when i write to the second line..
Also can anybody tell me how to print the memo index as a text?
thanks
sounds like you are on the right track.. counting the number of spaces is probably the easiest way to calculate the number of words in a file.. but as you have already identified.. one could run into trouble if there are multiple spaces in between words..
so why not identify the number of situations where there is a space and the next character is not a space...
this is my code, i cannot add your idea with "isspace"
i use borland c++6
can you help me how to use your way in this type of code ?
thanks again for your help
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.