第一章虽然感觉不像是个习题.但是我还是认真去做,去想,仅此而已! 练习 1-1 Run the "hello, world" program on your system. Experiment with leaving out parts of the program, to see what error messages you get. #include <stdio.h> int main(int argc, char const *argv[]) { print
该书英文配套答案 Answer to Exercise -, page Revise the main routine of the longest-line program so it will correctly print the length of arbitrarily long input lines, and as much as possible of the text. /* This is the first program exercise where the spec i
这一章习题做着很舒服,毕竟很简单.所以很有感觉. 练习 2-1 Write a program to determine the ranges of char , short , int , and long variables, both signed and unsigned , by printing appropriate values from standard headers and by direct computation. Harder if you compute them:
#include<stdio.h> #include<stdlib.h> #define N sizeof(link) typedef struct stu { struct stu *next; int date; }link; void print(link*head)/*打印链表数据*/ { link *p; p=head->next; if(p) do { printf("%d\t",p->date); p=p->next; }whil