HELP: C programming question# JobHunting - 待字闺中
s*1
1 楼
Please write a function that takes a string and a “FILE *” as parameters,
assuming the string consists of words separated by a single white space, and
prints into the “FILE *” the words in the string in descending order
sorted by the number of times they appear. For example an input of “a b b”
would generate output of:
b : 2
a : 1
assuming the string consists of words separated by a single white space, and
prints into the “FILE *” the words in the string in descending order
sorted by the number of times they appear. For example an input of “a b b”
would generate output of:
b : 2
a : 1