摘要:
test4 代码: #include<stdio.h>#include<stdlib.h> int main(){ int num=0; char ch; FILE *fp; fp=fopen("data4.txt","r"); if(fp==NULL) {printf("fail\n"); ret 阅读全文
摘要:
test1 代码 #include <stdio.h>#include <string.h> #include<stdlib.h>#define N 10 // 运行程序输入测试时,可以把这个数组改小一些输入测试 typedef struct student { int id; // 学号 char 阅读全文
摘要:
test 1 (1)代码 #include <stdio.h>#include <stdlib.h>#define N 4int main(){int x[N] = {1, 9, 8, 4};int i;int *p;// 方式1:通过数组名和下标遍历输出数组元素for (i = 0; i < N; 阅读全文
摘要:
实验1.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", si 阅读全文
摘要:
test1 代码 #include <stdio.h>#include <stdlib.h>#include <time.h>#include <windows.h>#define N 80void print_text(int line, int col, char text[]); void p 阅读全文
摘要:
实验任务1 代码: #include<stdio.h> #include<stdlib.h>#include<time.h> #define N 5#define R1 586#define R2 701int main(){ int number; int i; srand (time(0)); 阅读全文