9459: 1999年秋浙江省计算机等级考试二级C 编程题(2)
          Memory Limit:128 MB
          Time Limit:1.000 S
         
      
      
        
          Judge Style:Text Compare
          Creator:
      
      
          Submit:1
          Solved:0
      
Description
编制程序,统计文本stdin中字符$出现的次数,并将结果写入文件stdout
Input
字符文本
Output
$次数
Sample Input Copy
as$dfkjhkjkjdhf
asdfkj$lskdfj
werijweirjo$wie 
Sample Output Copy
3HINT
#include <stdio.h>
int main(){
  FILE *p;
  .....
  //p=fopen("data.txt","r");
  p=stdin;
  .....
  //p=fopen("res.txt","w");
  p=stdout;
  ....
  return 0; 
}