摘要: 一、一维数组 1、 一维数组的创建和初始化 数组是一组相同类型元素的集合 (1)数组的创建 //语法形式 type_t arr_name[const_n]; //type_t 是指数组的元素类型 //const_n 是一个常量表达式,用来指定数组的大小 #include<stdio.h> int m 阅读全文
posted @ 2021-11-14 21:56 mljrm 阅读(133) 评论(0) 推荐(0)
摘要: 第1章(第四版)C语言程序设计练习 第2章(第四版)C语言程序设计练习 第3章(第四版)C语言程序设计练习 第4章(第四版)C语言程序设计练习 第5章(第四版)C语言程序设计练习 第6章(第四版)C语言程序设计练习 阅读全文
posted @ 2021-11-14 17:13 mljrm 阅读(49) 评论(0) 推荐(0)
摘要: 一、例题 1.温度转换(64ºF→17.8ºC) #include<stdio.h> int main() { float f = 0; float c = 0; scanf_s("%f", &f); printf("摄氏度为:%f\n华氏度为:%f\n", (5.0 / 9) * (f - 32. 阅读全文
posted @ 2021-11-14 17:12 mljrm 阅读(143) 评论(0) 推荐(0)