摘要:
1.task1_1 // 将图书信息写入文本文件data1.txt #include <stdio.h> #define N 7 #define M 80 typedef struct { char name[M]; // 书名 char author[M]; // 作者 } Book; int m 阅读全文
摘要:
1.task1 #include <stdio.h> #include <string.h> #define N 3 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char name[20]; // 姓名 ch 阅读全文
摘要:
1.task1_1 #include <stdio.h> #define N 4 int main() { int a[N] = {1, 9, 8, 4}; char b[N] = {'1', '9', '8', '4'}; int i; printf("sizeof(int) = %d\n", s 阅读全文
摘要:
1.任务1#include<stdio.h> #include<stdlib.h> #include<time.h> #include<windows.h> #define N 80 void print_text(int line,int col,char text[]); void print_ 阅读全文
摘要:
任务一:#include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int number; int i; srand( time(0) ); for(i = 0; i < N; ++i) { nu 阅读全文
摘要:
任务一: #include<stdio.h> #include<stdlib.h> int main(){ printf(" 0 0\n"); printf("<H> <H> \n"); printf("I I I I\n"); system("pause"); return 0; } #inclu 阅读全文