摘要: 实验任务4 #define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<stdlib.h>int main(){ char a[2][100] = { "nuist2022-nuist2023","FIFA World Cup 2022" }; 阅读全文
posted @ 2022-12-28 02:00 漂亮的金属沙铃 阅读(24) 评论(0) 推荐(0)
摘要: 实验任务1 #define _CRT_SECURE_NO_WARNINGS#include <stdio.h>#include <string.h>#define N 10 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; / 阅读全文
posted @ 2022-12-27 14:26 漂亮的金属沙铃 阅读(21) 评论(0) 推荐(0)
摘要: 任务一 #include <stdio.h>#define N 4int main() { int a[N] = { 1, 9, 8, 4 }; char b[N] = { '1', '9', '8', '4' }; int i; printf("sizeof(int) = %d\n", sizeo 阅读全文
posted @ 2022-11-26 12:09 漂亮的金属沙铃 阅读(12) 评论(0) 推荐(0)
摘要: 实验任务1 #include<stdio.h>#include<stdlib.h>#include<time.h> #define N 5 int main(){ int number, i; srand(time(0)); for (i = 0; i < N; ++i) { number = ra 阅读全文
posted @ 2022-10-20 21:21 漂亮的金属沙铃 阅读(23) 评论(0) 推荐(0)
摘要: 实验任务1 task1.c task1_1.c task1_2.c 实验任务2 task2_1.c task2_2.c task2_2.c 实验任务3 实验任务4 实验任务5 实验任务6 实验任务7 阅读全文
posted @ 2022-10-18 23:36 漂亮的金属沙铃 阅读(17) 评论(0) 推荐(0)