2086 - 统计dollar符
Time Limit : 1 秒
Memory Limit : 128 MB
编写程序,统计字符串中符号$的出现次数,输入要以EOF结束。
Input
字符文本
Output
$次数
Examples
Input Format
as$dfkjhkjkjdhf asdfkj$lskdfj werijweirjo$wie
Output Format
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;
}