摘要: task1_1.c 1 #include <stdio.h> 2 #define N 4 3 int main() 4 { 5 int x[N] = {1, 9, 8, 4}; 6 int i; 7 int *p; 8 for(i=0; i<N; ++i) 9 printf("%d", x[i]); 阅读全文
posted @ 2022-06-14 10:06 谢子扬 阅读(29) 评论(4) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 3 #define N 5 4 #define M 80 5 6 typedef struct 7 { 8 char name[M]; 9 char author[M]; 10 }BOOK; 11 12 int main() 13 { 14 BOOK x 阅读全文
posted @ 2022-06-07 01:04 谢子扬 阅读(19) 评论(3) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #define N 4 3 4 int main() 5 { 6 int a[N]={2,0,2,2}; 7 char b[N]={'2','0','2','2'}; 8 int i; 9 10 printf("sizeof(int) = %d\n",si 阅读全文
posted @ 2022-05-09 22:06 谢子扬 阅读(11) 评论(3) 推荐(0) 编辑
摘要: task 1 #include<stdio.h>#include<stdlib.h>#include<time.h>#include<windows.h>#define N 80 void printText(int Line, int col, char text[]);void printSpa 阅读全文
posted @ 2022-04-26 09:39 谢子扬 阅读(36) 评论(3) 推荐(0) 编辑
摘要: task 1 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 int main() { int grade, number; int i; srand(time(0)); for(i=0;i<N;++i) { gra 阅读全文
posted @ 2022-04-19 09:07 谢子扬 阅读(31) 评论(3) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { printf(" O O \n"); printf("<H> <H>\n"); printf("I I I I\n"); return 0; } #include<stdio.h> #include<math.h> int main() 阅读全文
posted @ 2022-03-29 09:48 谢子扬 阅读(46) 评论(3) 推荐(0) 编辑