摘要:
#include <stdio.h> #include <stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; }STU; int main() { STU st, stmax, stmi 阅读全文
摘要:
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student{ int id; char name[20]; char subject[20]; float perf; float 阅读全文
摘要:
#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", &a[i] 阅读全文
摘要:
#include<stdio.h> #include<math.h> void solve(double a,double b,double c); int main(){ double a,b,c; printf("enter a,b,c:"); while(scanf("%1f%1f%1f",& 阅读全文