求解,用C语言编写一个程序,随机生成100个数,并从大到小排序

日期:2017-09-23 16:55:16 人气:1

求解,用C语言编写一个程序,随机生成100个数,并从大到小排序

//#include "stdafx.h"//vc++6.0加上这一行.#include "stdio.h"#include "time.h"#include "stdlib.h"int main(void){ int nDec[100],i,j,k; srand((unsigned)time(NULL)); for(i=0;i<100;nDec[i++]=rand())
    A+
热门评论