摘要:
task1 #include<stdio.h> #define N 7 #define M 80 typedef struct { char name[M]; //书名 char author[M]; //作者 }BOOK; int main() { BOOK x[N] = {{"《雕塑家》","斯 阅读全文
摘要:
task1 //打印不及格学生信息和所有学生信息程分别调用 #include<stdio.h> #include<string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; doubl 阅读全文
摘要:
task1.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( 阅读全文
摘要:
task1_1 #include<stdio.h>#define N 4 int main(){ int a[N] = {2,0,2,3}; char b[N] = {'2','0','2','3'}; int i; printf("sizeof(int) = %d\n",sizeof(int)); 阅读全文
摘要:
task1 #include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void printf_text(int line,int col,char text[]); void prin 阅读全文
摘要:
task1 #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define R1 586 #define R2 701 int main() { int number; int i; srand(time(0));/ 阅读全文
摘要:
//打印一个字符小人 #include<stdio.h> int main(){ printf(" O \n"); printf("<H>\n"); printf("I I\n"); printf(" O \n"); printf("<H>\n"); printf("I I\n"); return 阅读全文