摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文
posted @ 2019-12-25 23:44 ethereallyt 阅读(190) 评论(2) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文
posted @ 2019-12-25 16:11 ethereallyt 阅读(88) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> const int N=5; // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; 阅读全文
posted @ 2019-12-19 14:21 ethereallyt 阅读(126) 评论(2) 推荐(0)
摘要: // 这个程序用于观察数组中的一组数据元素在内存中是否是连续存放的 // 以及数组元素的直接访问与间接访问 #include <stdio.h> #include <stdlib.h> const int N=3; int main() { int a[N] = {1, 2, 3}; // 定义一维 阅读全文
posted @ 2019-12-15 12:26 ethereallyt 阅读(178) 评论(1) 推荐(0)
摘要: #include <math.h> #include <stdio.h> #include <stdlib.h> // 函数声明 void solve(double a, double b, double c); // 主函数 int main() { double a, b, c; printf( 阅读全文
posted @ 2019-12-01 11:56 ethereallyt 阅读(135) 评论(1) 推荐(0)
摘要: /* 编程找出5个整数的最大数和最小数 《C语言程序设计教程学习指导》p122实验内容(3) */ #include <stdio.h> #include <stdlib.h> int main() { int number, max, min, n; n=1; printf("输入第%d个数: " 阅读全文
posted @ 2019-11-17 11:01 ethereallyt 阅读(107) 评论(4) 推荐(0)
摘要: part1: part3: 阅读全文
posted @ 2019-11-04 11:34 ethereallyt 阅读(108) 评论(3) 推荐(0)
摘要: #include<stdio.h> int main() { printf("201983270539"); return 0; } #include<stdio.h> int main() { printf("hello,Mars!"); return 0; } #include<stdio.h> int product(int,int); /*声明后面系将要使用函数product()*/ in 阅读全文
posted @ 2019-10-20 16:50 ethereallyt 阅读(150) 评论(0) 推荐(0)