![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 589 阅读 · 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 · 642 阅读 · 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 · 703 阅读 · 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 · 493 阅读 · 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 · 492 阅读 · 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 · 596 阅读 · 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 · 629 阅读 · 0 评论