C in Practice
angel272
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[C0.0] C in Practice
The C Programming Language (Second Edition) Brian W.Kernighan & Dennis M.RitchieThe only way to learn a new programming language is by writing programs in it.原创 2005-02-28 13:54:00 · 653 阅读 · 0 评论 -
[C1.1] Getting Started
This is the first C program. #include main() { printf("hello, world/n"); }Getting Started. #include main() { printf("Getting Started./nC in Practice."); }原创 2005-03-01 13:12:00 · 696 阅读 · 0 评论 -
[C1.2] Fahrenheit-Celsius Table
/* C in practice *//* C1.2 Fahrenheit-Celsius Table */#include/* print Fahrenheit-Celsius table for fahr = 0, 20, ..., 300 */main(){ int fahr, celsius; int lower, upper, step; lower = 0;原创 2005-03-02 13:22:00 · 777 阅读 · 0 评论 -
[C1.6] File Copying
/* C in Practice *//* C1.6 File Copying */#includemain(){ int c; c = getchar(); while (c != EOF) { putchar(c); c = getchar(); }}原创 2005-03-19 12:44:00 · 543 阅读 · 0 评论 -
[C1.7] File Copying
/* C in Practice *//* C1.7 copy input to output */#includemain(){ int c; while ((c = getchar()) != EOF) { putchar(c); }}原创 2005-03-19 13:07:00 · 556 阅读 · 0 评论 -
[C1.8] Character Counting
/* C in Practice *//* C1.8 Character counting */#includemain(){ long nc; nc = 0; while ((getchar()) != EOF) { ++nc; } printf("%ld", nc);}原创 2005-03-20 00:30:00 · 652 阅读 · 0 评论 -
[C1.9] Character Counting
/* C in Practice *//* C1.9 Character counting using a for statement */ #includemain(){ double nc; for (nc=0; getchar() != EOF; ++nc) ; printf("%.0f", nc);}原创 2005-03-20 01:12:00 · 695 阅读 · 0 评论
分享