Saturday, August 21, 2010

What are control characters in c++. if anybody know abt them plz help me in a solving an acm Question...?

i am making a c++ program which goes as:





Write a program to find the most frequent word in a file of text. A word is any non-empty continuous sequence of alphabetic characters. Case is not regarded as significant, so the words ';bother'; and ';BOTHeR'; should be considered the same word.





Any non-alphabetic characters (including control characters such as newlines) can be used to separate words. Thus ';isn't'; is counted as two words, the second of which is a one letter word consisting only of the letter ';t';.





i have the confusion about control characters as they may be used to distinguish two words.....


can any body help me out..What are control characters in c++. if anybody know abt them plz help me in a solving an acm Question...?
Don't worry about what is a control character, you're making it too hard. The statement of the problem says ';Any non-alphabetic characters can be used to separate words.';





Call the library function isalpha(c). If it returns false, you have a word delimiter.What are control characters in c++. if anybody know abt them plz help me in a solving an acm Question...?
Although it's hard to imagine how control characters other than line-feed would find there way into a text file, these are characters outside the range 32-128 in the ASCII table. So something like CTRL, BELL or BACKSPACE is considered a control character.

No comments:

Post a Comment