摘要:
任务三 是的 是的 是的 任务四 子任务一 是的 是的 不可直接读 子任务二 直接在任务一的原基础上增加 fin2=fopen("dile4.dat","rb"); fread(st,sizeof(STU),N,fin2); for(i=0; i<N; i++) printf("%-6d%-10s% 阅读全文
摘要:
任务一 #include<stdio.h> #include<stdlib.h> #include<string.h> #define N 2 // 运行程序输入测试时,可以把N改小一些输入测试 typedef struct student { int id; /*学生学号 */ char name 阅读全文
摘要:
任务一 #include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", & 阅读全文
摘要:
#include <math.h> #include <stdio.h> void solve(double a, double b, double c); int main() { double a, b, c; printf("Enter a, b, c: "); while(scanf("%l 阅读全文