2021年6月20日

实验七

摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> const int N = 10; // 定义结构体类型struct student,并定义其别名为STU typedef struct student { long int id; 阅读全文

posted @ 2021-06-20 01:35 是露露吖 阅读(22) 评论(0) 推荐(0) 编辑

2021年6月11日

实验六

摘要: #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name[20] 阅读全文

posted @ 2021-06-11 08:37 是露露吖 阅读(32) 评论(0) 推荐(0) 编辑

2021年5月28日

实验五

摘要: #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] 阅读全文

posted @ 2021-05-28 08:19 是露露吖 阅读(37) 评论(0) 推荐(0) 编辑

2021年4月20日

实验三

摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int x, n; srand(time(0)); for(n=1; n<=N; n++) { x = rand() % 100; pr 阅读全文

posted @ 2021-04-20 00:00 是露露吖 阅读(68) 评论(0) 推荐(0) 编辑

2021年4月5日

实验2 c语言中的表达式及输入输出函数编程应用

摘要: #include <stdio.h> int main() { int num; scanf("%d", &num); printf("2049%04d\n", num); scanf("%d", &num); printf("2049%04d\n", num); scanf("%d", &num) 阅读全文

posted @ 2021-04-05 10:48 是露露吖 阅读(395) 评论(0) 推荐(0) 编辑

2021年3月17日

实验1 C语言开发环境使用和数据类型、运算符、表达式

摘要: #include <stdio.h> int main(){ printf(" o \n"); printf("<H>\n"); printf("I I\n\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); getchar(); retu 阅读全文

posted @ 2021-03-17 20:16 是露露吖 阅读(99) 评论(1) 推荐(0) 编辑

导航