随笔分类 -  c-primer-plus

摘要:作业练习1.#include int main(void) { char ch; int spare, other, n; //空格,其他字符,换行 spare = other = n = 0; while ((ch = getchar()) != '#') ... 阅读全文
posted @ 2017-10-14 17:28 AprilieJin 阅读(174) 评论(0) 推荐(0)
摘要:复习题:8.int choice(int a,int b,int c){ int max; max = a; if (b > max) max = b; if (c > max) max = c; return max... 阅读全文
posted @ 2017-10-14 17:28 AprilieJin 阅读(242) 评论(0) 推荐(0)
摘要:记录下写的最后几题。14.#include int main() { double value[8]; double value2[8]; int index; for (index = 0; index int main() { char symbol... 阅读全文
posted @ 2017-10-14 17:28 AprilieJin 阅读(128) 评论(0) 推荐(0)
摘要:这章感觉好难啊,放个别人的总结.// 多维数组和指针#include int main(void){ int zippo[4][2] = {{2, 4}, {6, 8}, {1, 3}, {5, 7}}; /* zippo[0]是一个整数大小对象的地址,而zi... 阅读全文
posted @ 2017-10-14 17:28 AprilieJin 阅读(347) 评论(0) 推荐(0)
摘要:1.#include int main(){ char ch; int ct = 0; while ((ch=getchar()) != EOF) ct++; printf("%d characters read.", ct); retur... 阅读全文
posted @ 2017-10-14 17:28 AprilieJin 阅读(290) 评论(0) 推荐(0)