摘要: #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;p<x+N;++p) pr 阅读全文
posted @ 2022-06-14 11:12 龚万彧 阅读(14) 评论(3) 推荐(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-06 14:25 龚万彧 阅读(8) 评论(3) 推荐(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)); printf("si 阅读全文
posted @ 2022-05-10 12:22 龚万彧 阅读(5) 评论(3) 推荐(0) 编辑
摘要: task1.c #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printText(int line,int col,char text[]); void prin 阅读全文
posted @ 2022-04-26 09:09 龚万彧 阅读(12) 评论(3) 推荐(0) 编辑
摘要: task1.c //生成五个介于2018级到2021级间的随机学号// #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int grade, number; int i; srand( 阅读全文
posted @ 2022-04-19 09:22 龚万彧 阅读(12) 评论(3) 推荐(0) 编辑
摘要: { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" \n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); return 0; } #include <stdio.h> 阅读全文
posted @ 2022-03-28 14:10 龚万彧 阅读(23) 评论(4) 推荐(1) 编辑