自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 C primer plus (第六版) 习题答案//总结篇

当我刚开始学习C语言的时候,我选择了《C primer plus》这本书。而作为C语言的经典入门书籍,书上的内容令我受益颇多。可当我为课后习题苦恼不已时,我的手边并没有一份较为完备,准确的习题答案。借 的一句话:所以我决定自己重新手打一份准确,完备的《C primer plus》的答案,以供初入此道的萌新们参考。当然,如有疏漏,欢迎在评论区提出。...

2019-11-03 12:42:36 60940 43

原创 C primer plus(第六版)第十一章源代码

C primer plus(第六版)第十一章源代码/* 11.1 */#include<stdio.h>#define MSG "I am a symbolic string constant."#define MAXLENGTH 81int main(void){ char words[MAXLENGTH] = "I am a string in an arr...

2020-04-05 22:50:22 1783

原创 C primer plus(第六版) 第十章答案

C primer plus(第六版) 第十章答案/* First */#include<stdio.h>#define MONTHS 12#define YEARS 5int main(void){ const float rain[YEARS][MONTHS] = { { 4.3, 4.3, 4.3, 3.0, 2.0, 1.2,...

2020-04-01 11:02:33 4336 2

原创 C primer plus(第六版)第十章源代码

C primer plus(第六版)第十章源代码/* 10.1 */#include<stdio.h>#define MONTHS 12int main(void){ int days[MONTHS] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int index; for (ind...

2020-03-31 11:22:31 1322 2

原创 C primer plus(第六版) 第九章答案

C primer plus(第六版) 第九章答案/* First */ #include<stdio.h>double min( double x, double y ){ return ( x < y ? x : y);}int main(){ double x,y,result; scanf("%lf",&x); scanf("%lf",&a...

2020-03-29 12:15:07 3594 2

原创 IDE/编辑器推荐

好的工具不仅会带来效率的提升,更重要的是它可以给予我们一种舒适的编程环境,减轻debug时的焦虑不安。作为一名编程者,平常我们敲代码所消耗的时间注定会占据日常生活相当大的一部分,因此,一款好的工具便显得尤为重要。                此文章仅做分享,拒绝抬杠磨刀不误砍柴工。       --冯德英《山菊花》IDE作为刚入门的新手,对于IDE的要求应该是轻量化简洁易懂...

2020-03-28 21:38:45 367

原创 C primer plus(第六版)第九章源代码

第九章/* 9.1 */#include<stdio.h>#define NAME "GIGATHINK, INC."#define ADDRESS "101 Megabuck Plaza"#define PLACE "Megapolis, CA 94904"#define WIDTH 40void starbar(void);int main(void...

2019-11-20 13:04:21 1195

原创 C primer plus(第六版) 第八章答案

C primer plus(第六版) 第七章答案/* 第一题 */#include<stdio.h>int main(void){ char ch; int count = 0; while ((ch = getchar()) != EOF) count++; printf("%d",count); return 0;}/* 第二...

2019-11-15 09:15:40 3587 4

原创 C primer plus(第六版)第八章源代码

第八章/* 8.1 */#include<stdio.h>int main(void){ char ch; while ((ch = getchar()) != '#') putchar(ch); return 0;}/* 8.2 */#include<stdio.h>int main(void){ int ch; ...

2019-11-15 09:07:52 865

原创 C primer plus(第六版) 第七章答案

C primer plus(第六版) 第七章答案/* 第一题 */#include<stdio.h>#define SPACE ' 'int main(void){ int count_space = 0; int count_line_break = 0; int count_others = 0; int ch; printf("Please pu...

2019-11-13 22:32:11 7183 28

原创 C primer plus(第六版)第七章源代码

第七章/* 7.1 */#include<stdio.h>int main(void){ const int FREEZING = 0; float temperature; int cold_days = 0; int all_days = 0; printf("Enter the list of daily low temperature.\n");...

2019-11-10 10:51:06 1125 2

原创 C primer plus(第六版) 第六章答案

C primer plus(第六版) 第五章答案/* 第一题 */#include<stdio.h>int main(void){ char letters[26]; int i; for(i = 0;i < 26; i++) { letters[i] = 'a' + i; printf("%c ",letters[i]); } re...

2019-11-08 22:58:25 9900 19

原创 C primer plus(第六版)第六章源代码

第六章/* 6.1 */#include<stdio.h>int main(void){ long num; long sum = 0L; int status; printf("Please enter an integer to be summed "); printf("(q to quit): "); status = scanf("%ld",&a...

2019-11-07 12:55:25 2400

原创 C primer plus(第六版) 第五章答案

C primer plus(第六版))第四章答案/* 第一题 */#include<stdio.h>#define MIN 60int main(void){ int min, hour, sec; printf("Please enter minutes.\n"); scanf("%d",&min); while (min > 0) {...

2019-11-07 08:57:02 4895 5

原创 C primer plus(第六版)第五章源代码

第五章/* 5.1 */#include<stdio.h>#define ADJUST 7.31int main(void){ const double SCALE = 0.333; double shoe, foot; shoe = 9.0; foot = SCALE * shoe + ADJUST; printf("Shoe size (men'...

2019-11-06 12:09:38 867 1

原创 C primer plus(第六版) 第四章答案

C primer plus(第六版))第四章答案/* 第一题 */#include<stdio.h>int main(void){ char first_name[20],last_name[20]; printf("Please input your first_name.\n"); scanf("%s",first_name); printf("Pleas...

2019-11-04 08:30:48 5968 17

原创 C primer plus(第六版)第三章源代码

第三章/* 3.1 */#include<stdio.h>int main(void){ float weight; float value; printf("Are you worth your weight in platinum?\n"); printf("Let's check it out.\n"); printf("Please enter yo...

2019-11-03 12:36:14 1036

原创 C primer plus(第六版)第四章源代码

第四章/* 4.1 */#include<stdio.h>#include<string.h>#define DENSITY 62.4;int main(void){ float weight,volume; int size, letters; char name[40]; printf("Hi! What's your first na...

2019-11-03 12:32:00 931

原创 C primer plus(第六版)第二章源代码

第二章//2.1#include<stdio.h>int main(){ int num; num = 1; printf("I am a simple "); printf("computer.\n"); printf("My favourite number is %d because it is first.\n",num); return 0; ...

2019-11-03 12:24:14 3026

原创 C primer plus(第六版))第三章答案

标题C primer plus(第六版)第二章答案/* 第一题 */#include<stdio.h>int main(void){ int int_max = 2147483647 ; printf("%d %d\n",int_max,int_max+1); float float_max = 3.40e38; printf("%f %f",float_ma...

2019-11-03 09:22:05 6697 5

原创 C primer plus(第六版)第二章答案

C primer plus(第六版)第二章课后习题答案/* 第一题 */#include<stdio.h>int main(void){printf(“Cherry zc\n”);printf(“Cherry \nzc\n”);printf("Cherry ");printf(“zc”);return 0;}/* 第二题 */#include<std...

2019-11-02 11:52:08 13446 16

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除