摘要: test 1-1; #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< 阅读全文
posted @ 2022-06-13 14:44 次仁曲珍 阅读(19) 评论(0) 推荐(0)
摘要: task 1-1;#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 22:54 次仁曲珍 阅读(37) 评论(0) 推荐(0)
摘要: task 1-1: #include<stdio.h> #defineN4 intmain() { inta[N]={2,0,2,2}; charb[N]={'2','0','2','2'}; inti; printf("sizeof(int)=%d\n",sizeof(int)); printf( 阅读全文
posted @ 2022-05-06 10:52 次仁曲珍 阅读(34) 评论(0) 推荐(0)
摘要: TEST1;#include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #define N 80 void printText(int line,int col,char text[]); void pr 阅读全文
posted @ 2022-04-23 11:05 次仁曲珍 阅读(40) 评论(0) 推荐(0)
摘要: TEST1;#include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int grade, number; int i; srand(time(0)); // 以当前系统时间作为随机种子 for 阅读全文
posted @ 2022-04-18 16:11 次仁曲珍 阅读(27) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" \n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); re 阅读全文
posted @ 2022-03-28 15:36 次仁曲珍 阅读(51) 评论(0) 推荐(0)