2021年12月22日
摘要: Task 1 #include <stdio.h> #define N 5 // 定义结构体类型struct student,并定义STU为其别名 typedef struct student { long no; char name[20]; int score; } STU; // 函数声明 v 阅读全文
posted @ 2021-12-22 19:01 黄爽 阅读(84) 评论(1) 推荐(0)
  2021年12月15日
摘要: Task 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-15 11:37 黄爽 阅读(20) 评论(0) 推荐(0)
  2021年12月13日
摘要: Task 1-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("origina 阅读全文
posted @ 2021-12-13 16:54 黄爽 阅读(48) 评论(1) 推荐(0)
  2021年12月1日
摘要: task 1-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 阅读全文
posted @ 2021-12-01 22:54 黄爽 阅读(50) 评论(1) 推荐(0)
  2021年11月27日
摘要: task1-1 #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! = % 阅读全文
posted @ 2021-11-27 19:20 黄爽 阅读(67) 评论(2) 推荐(0)
  2021年11月14日
摘要: task 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" 阅读全文
posted @ 2021-11-14 12:03 黄爽 阅读(82) 评论(3) 推荐(0)
  2021年10月29日
摘要: #include<stdio.h> int main() { printf(" o o \n" " <H> <H> \n" " I I I I \n"); return 0; } #include<stdio.h> int main() { printf(" o \n" " <H>\n" " I I 阅读全文
posted @ 2021-10-29 08:58 黄爽 阅读(50) 评论(0) 推荐(0)
< 2025年7月 >
29 30 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9

点击右上角即可分享
微信分享提示