摘要: #include <stdio.h> #include <stdlib.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( 阅读全文
posted @ 2022-06-14 10:13 青岚2 阅读(9) 评论(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-05 16:28 青岚2 阅读(23) 评论(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 12:29 青岚2 阅读(17) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #include<unistd.h> #define N 80 void printText(int line,int col,char text[]); void printSpaces(i 阅读全文
posted @ 2022-04-24 09:54 青岚2 阅读(15) 评论(0) 推荐(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) { grade 阅读全文
posted @ 2022-04-17 09:49 青岚2 阅读(11) 评论(0) 推荐(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> int main() { printf(" O \n") 阅读全文
posted @ 2022-03-27 09:55 青岚2 阅读(26) 评论(0) 推荐(0)