Problem1335--字符编程计算

1335: 字符编程计算

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

编制程序,统计文本stdin中字符$出现的次数,并将结果写入文件stdout

Input

字符文本

Output

$次数

Sample Input Copy

as$dfkjhkjkjdhf
asdfkj$lskdfj
werijweirjo$wie 

Sample Output Copy

3

HINT



#include <stdio.h>
int main(){
  FILE *p;
  .....
  //p=fopen("data.txt","r");
  p=stdin;
  .....
  //p=fopen("res.txt","w");
  p=stdout;
  ....
  return 0; 
}

Source/Category