摘要: #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"); for (p = x 阅读全文
posted @ 2022-06-07 18:54 唐卉宁 阅读(17) 评论(3) 推荐(0) 编辑
摘要: 1.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 阅读全文
posted @ 2022-06-06 19:29 唐卉宁 阅读(11) 评论(2) 推荐(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-03 20:19 唐卉宁 阅读(10) 评论(1) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printText(int line, int col, char text[]); void printSpace 阅读全文
posted @ 2022-04-19 22:51 唐卉宁 阅读(19) 评论(2) 推荐(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) { gra 阅读全文
posted @ 2022-04-12 21:04 唐卉宁 阅读(16) 评论(2) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { int n; n = 1; do { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf("\n"); n++; } while (n <= 2); return 0; } 阅读全文
posted @ 2022-03-23 23:45 唐卉宁 阅读(36) 评论(2) 推荐(0) 编辑