- 博客(3)
- 收藏
- 关注
原创 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 163
原创 C Primer Plus (第6版)第三章编程练习
第三章 数据和C2. 编写一个程序,要求提示输入一个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 226
原创 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 363
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人