摘要: #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; // 方式1:通过数组名和下标遍历输出数组元素 for(i=0; i<N; ++i) printf("%d", x[i]); pri 阅读全文
posted @ 2022-06-13 16:23 jackytherui 阅读(26) 评论(0) 推荐(0)
摘要: #include<stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; char author[M]; }Book; int main() { Book x[N]= {{"一九八四","乔治.奥威尔"}, {"美丽新世界", 阅读全文
posted @ 2022-06-07 00:41 jackytherui 阅读(54) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define N 4 int main() { int a[N] = {2, 0, 2, 2}; char b[N] = {'2', '0', '2', '2'}; int i; printf("sizeof(int) = %d\n", sizeof(int) 阅读全文
posted @ 2022-05-08 21:39 jackytherui 阅读(32) 评论(0) 推荐(0)
摘要: 1.更能融会贯通进制与C语言的应用,更熟悉掌握素数的C语言表达式 2.C语言字符串问题还没完全掌握,如盘子这类问题 阅读全文
posted @ 2022-04-21 20:45 jackytherui 阅读(42) 评论(0) 推荐(0)
摘要: 问题:1`取随机种子除4的余数加2018作为8330的前四位数字 2·取随机种子除999的余数加1作为8330后面的四位数字 3·随机抽取五位以2018到2021开头,以8330为中间四位,0001到0998结尾的12位数字学号的学生 总结: 1.通过这次实验,我能更熟练地应用for语句,也能更熟练运用循环语句和嵌套语句。 2.这次实验中任务二和任务六对我来说难度较大,我还不能很熟练的做出这类题型,之后应多加练习此类题型。 阅读全文
posted @ 2022-04-16 10:37 jackytherui 阅读(44) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); printf("\n"); printf(" o\n"); printf("<H>\n"); printf("I I\n"); retur 阅读全文
posted @ 2022-03-23 19:52 jackytherui 阅读(128) 评论(1) 推荐(0)