摘要: tesk1-1.c #include <stdio.h> #define N 4 int main() { int x[N] = {1, 9, 8, 4}; int i; int *p; for(i=0; i<N; ++i) printf("%d", x[i]); printf("\n"); // 阅读全文
posted @ 2022-06-14 09:10 甜司康饼 阅读(4) 评论(2) 推荐(0) 编辑
摘要: tesk1-1.c #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-06 23:03 甜司康饼 阅读(25) 评论(2) 推荐(0) 编辑
摘要: tesk1-1.c #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-09 22:53 甜司康饼 阅读(8) 评论(3) 推荐(0) 编辑
摘要: 恢复内容开始 tesk.1.c #include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #define N 80 void printText(int line,int col,char text[]) 阅读全文
posted @ 2022-04-23 14:43 甜司康饼 阅读(26) 评论(3) 推荐(0) 编辑
摘要: #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++) { 阅读全文
posted @ 2022-04-18 23:02 甜司康饼 阅读(10) 评论(3) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { printf(" o\n"); printf("<H>\n"); printf("I I\n"); return 0; } tesk1-1.c #include <stdio.h> int main() { printf(" o\n") 阅读全文
posted @ 2022-03-22 21:54 甜司康饼 阅读(21) 评论(3) 推荐(0) 编辑