![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C Primer Plus
文章平均质量分 57
谈胆
这个作者很懒,什么都没留下…
展开
-
C Primer Plus(第6版)第四章编程练习
第4章 字符串和格式化输入/输出 1. 编写一个程序,提示用户输入名和姓,然后以“名,姓”的格式打印出来。 #include <stdio.h> #include <stdlib.h> int main() { char firstName[20]; char lastName[20]; printf("Please enter your ...原创 2018-11-25 17:10:43 · 174 阅读 · 0 评论 -
C Primer Plus (第6版)第二章编程练习
第二章 C语言概述 3. 编写一个程序把你的年龄转换成天数,并显示这两个值。这里不考虑闰年的问题。 #include <stdio.h> #include <stdlib.h> int main() { int ageyears; int agedays; ageyears = 23; agedays = 365 * ageyear...原创 2018-11-25 16:01:12 · 371 阅读 · 0 评论 -
C Primer Plus (第6版)第三章编程练习
第三章 数据和C 2. 编写一个程序,要求提示输入一个ASCII码值(如66),然后打印输入的字符。 #include <stdio.h> #include <stdlib.h> int main() { int ascii; printf("Enter an ASCII code: "); scanf("%d", &ascii); ...原创 2018-11-25 16:21:47 · 235 阅读 · 0 评论