![](https://img-blog.csdnimg.cn/2019091813595558.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
C Primer Plus学习过程记录
自己学C Prime Plus过程中一些编程练习的解答,仅供参考。
红Frost
这个作者很懒,什么都没留下…
展开
-
C Primer Plus (第6版)编程练习9.11.9
新手代码,大佬勿喷,自己学习过程中的一些记录。/* Programming Exercise 9-8 */#include <stdio.h>double power(double a, int b); /* ANSI prototype */double power2(double a,int b);int main(void){ double x, xpow; int n; printf("Enter a number and the integer power");原创 2022-05-12 21:33:16 · 162 阅读 · 1 评论 -
C Primer Plus (第6版)编程练习9.11.7
新手代码,大佬勿喷,自己学习过程中的一些#include<stdio.h>#include<ctype.h>//declarationint trans_char(char ch);int main(){ char ch; int n; while ((ch = getchar()) != EOF) { n = trans_char(ch); printf("%d ", n); if (ch == '\n') printf("\n");原创 2022-05-12 20:43:11 · 79 阅读 · 0 评论 -
C Primer Plus (第6版)编程练习8.11.8
#include<stdio.h>void show_menu(void);double input_first(void);double input_second(char ch);void output_result(char ch, double num1,double num2);int main(){ double num1 = 0.0, num2 = 0.0; char ch; show_menu(); ch = getchar(); while (ch .原创 2022-05-09 15:03:15 · 182 阅读 · 1 评论