- 博客(6)
- 收藏
- 关注
原创 [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 640
原创 [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 609
原创 [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 499
原创 [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 501
原创 [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 712
原创 [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 648
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人