知迩

2021年12月29日

实验7

摘要: 任务1 #include <stdio.h> #define N 5 // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; } STU; // 函数声明 void 阅读全文

posted @ 2021-12-29 13:14 知迩 阅读(25) 评论(1) 推荐(0) 编辑

2021年12月20日

实验6

摘要: 任务1 #include <stdio.h> #define N 5 int binarySearch(int *x, int n, int item); int main() { int a[N] = {2, 7, 19, 45, 66}; int i, index, key; printf("数 阅读全文

posted @ 2021-12-20 08:57 知迩 阅读(20) 评论(1) 推荐(0) 编辑

2021年12月12日

实验5

摘要: 任务1 #include<stdio.h> #define N 5 void output(int x[],int n); int main() { int x[N]={9,55,30,27,22}; int i; int k; //最大元素下标 int t; //中间变量 printf("orig 阅读全文

posted @ 2021-12-12 16:14 知迩 阅读(23) 评论(1) 推荐(0) 编辑

2021年12月6日

实验4

摘要: 任务1 #include<stdio.h> const int N = 4; int main() { int a[N] = {2, 0, 2, 1}; char b[N] = {'2', '0', '1', '1'}; int i; printf("sizeof(int) = %d\n", siz 阅读全文

posted @ 2021-12-06 22:05 知迩 阅读(32) 评论(2) 推荐(0) 编辑

2021年11月28日

实验3

摘要: 任务一 #include<stdio.h> long long fac(int n); int main() { int i, n; printf("Enter n: "); scanf("%d", &n); for(i = 1; i <= n; ++i) printf("%d!=%lld\n", 阅读全文

posted @ 2021-11-28 22:16 知迩 阅读(27) 评论(1) 推荐(0) 编辑

2021年11月15日

实验2

摘要: 任务1 #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-11-15 23:24 知迩 阅读(21) 评论(3) 推荐(0) 编辑

2021年10月31日

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

摘要: 实验结论 1.实验任务1 #include<stdio.h> int main(){ printf(" 0 \n"); printf("<H>\n"); printf("I I\n"); printf("\n"); printf(" 0 \n"); printf("<H>\n"); printf(" 阅读全文

posted @ 2021-10-31 20:40 知迩 阅读(16) 评论(0) 推荐(0) 编辑

导航