close

標題:

c 程式高手請進!

aa.jpg

 

此文章來自奇摩知識+如有不便請留言告知

發問:

Please provide a whole ProgramRead integers from file and place them into an array. This program will sort the integers into ascending order and descending orderand print the sorted list out. caution : never change the original array and create any new arrays.the integers are :26 14 57 33 41

最佳解答:

#include using namespace std; int main() { int temp; int n[]={26,14,57,33,41}; for (int i=0;in[j]) { temp=n[i]; n[i]=n[j]; n[j]=temp; }}} cout=0;i--) cout
其他解答:

arrow
arrow
    創作者介紹
    創作者 ohe09nz81r 的頭像
    ohe09nz81r

    ohe09nz81r的部落格

    ohe09nz81r 發表在 痞客邦 留言(0) 人氣()