摘要: 一: 1、 #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] 阅读全文
posted @ 2022-06-14 09:54 夏吾吉 阅读(10) 评论(1) 推荐(0) 编辑
摘要: 一: 1, #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #define N 5 #define M 80 typedef struct { char name[M]; char author[M]; }Book; int main() { Bo 阅读全文
posted @ 2022-06-05 21:14 夏吾吉 阅读(13) 评论(1) 推荐(0) 编辑
摘要: task 1-1 #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", si 阅读全文
posted @ 2022-05-09 23:17 夏吾吉 阅读(4) 评论(1) 推荐(0) 编辑
摘要: task 1 //每隔一秒出现一次hi,May~ 共10次#include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printText(int line,int co1,ch 阅读全文
posted @ 2022-04-24 16:20 夏吾吉 阅读(24) 评论(1) 推荐(0) 编辑
摘要: //随机生成五个201883300001到202183300999之间的学号 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int grade,number; int i; sran 阅读全文
posted @ 2022-04-19 11:05 夏吾吉 阅读(26) 评论(1) 推荐(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"); ret 阅读全文
posted @ 2022-03-26 16:40 夏吾吉 阅读(41) 评论(2) 推荐(0) 编辑