摘要:
#include<stdio.h> #include<stdlib.h> #define N 10 typedef struct student { int num; char name[20]; int score; } STU; void sort(STU *pst, int n); int m 阅读全文
摘要:
#include<stdio.h> const int N=3; int main(void) { int a[N]={1,2,3}; int i=0; printf("通过数组名及下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n",&a[i] 阅读全文
摘要:
// ex1.cpp #include <stdio.h> int main() { int a=5, b=7, c=100, d, e, f; d = a/b*c, //d=(a与b的取整商)*c e = a*c/b, //e=(a*c)与b的取整商 f = c/b*a; //f=(c与b的取整商 阅读全文