C++资料 大学认真课程 C++教程
#include #define a 40 void main() { int i,j,n; float score[a],temp1; long num[a],temp2; printf("number:\n"); scanf("%d",&n); printf("num and score:\n"); for(i=0;i score[i]) { temp1=score[j]; score[j]=score[i]; score[i]=temp1; temp2=num[j]; num[j]=num[i]; num[i]=temp2; } } } printf("results:\n"); for(i=0;i