- 博客(4)
- 收藏
- 关注
原创 CPrimer Plus第6版第十六章编程练习答案(C语言)(自学记录)
第一题 将后面的头文件全部放入第一题中 #pragma once //第一题 #ifdef SIXTH_2 #include <stdio.h> #define TIAOHE(X,Y) (1/((1/(X)+1/(Y))/2)) #endif // SIXTH_2 #ifdef SIXTH_3 //输入向量的模和角度,显示x轴和y轴的坐标 #include <stdio.h> #include <math.h> #define PI 3.14159 #define
2021-08-30 22:31:26
415
原创 CPrimer Plus第6版第十五章编程练习答案(C语言)(自学记录)
第一题 #define _CRT_SECURE_NO_WARNINGS //第十五章,编程练习题,第一题 #include <stdio.h> #include <stdlib.h> #include <string.h> int printStrInt(char* str); char* fget_s(char* st, int n); int main(void) { int ch; char str[100]; printf("请输入一个二进制字符串:");
2021-05-24 22:15:50
373
原创 C Primer Plus 第6版 第十四章编程练习答案(C语言)(自学记录)
第十四章编程练习 第一题 #define _CRT_SECURE_NO_WARNINGS //第十四章,编程练习题,第一题 #include <stdio.h> #include <stdlib.h> #include <string.h> int yearday(char*); struct months { char monname[10]; char montead[4]; int day; int num; }; struct months years[1
2021-05-05 12:56:34
932
原创 C Primer Plus 第6版 第十三章编程练习答案(C语言)(自学记录)
第十三章编程练习答案,自学记录 第一题 #define _CRT_SECURE_NO_WARNINGS //第十三章编程练习,第一题 /*修改程序清单13.1程序,让用户输入文件名称*/ #include <stdio.h> #include <stdlib.h> //提供exit()原型 #include <string.h> #define SLEN 181 char* s_gets(char* ptr, int n); int main() { int ch;
2021-04-06 21:35:46
472
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅