count_words
来源:互联网 发布:农业大数据云平台 编辑:程序博客网 时间:2024/05/06 21:04
#include <stdio.h>#define IN 1#define OUT 0int main(){ int c, nl, nw, nc, state; state = OUT; nl = nw = nc = 0; while ( (c = getchar()) != EOF ) { ++nc; if (c == '\n') ++nl; if (c == ' ' || c == '\n' || c == '\t') state = OUT; else if (state == OUT) { state = IN; ++nw; } } printf("%d %d %d\n", nl, nw, nc); return 0;}
0 0
- count_words
- Makefile笔记01之error:"No rule to make target 'count_words', needed by '-lfl'. Stop."
- sendKeys & sendRepeatedKeys
- 西风多少恨,吹不散眉弯
- iOS 开发中 提取图像某个点的像素值
- sed入门教程
- PacketFilter 包过滤类及其子类用法
- count_words
- 为Android AlertDialog.Builder添加监听器
- Java目前最吃香的编程语言
- 不要使用SBJSON(json-framework)
- 石小平个傻子
- Open Source TPM support
- office2010 中word没有输入法
- 谁都可以无止境的对一个人好,前提是,值得
- 外键约束的使用示例