close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Use GarageBand in Just 1 Hour

Learn to create music in GarageBand and become the Beethoven you've wanted to be. This online course is just $30. Sign up today!
From our sponsors
求助C語言程式碼
Dec 8th 2013, 05:38

求大大教我怎麼寫這個程式

用C寫 排序

1.讀檔in.txt (裡面要有數字 15~6 數字用空白隔開)

2.讀入之後做排序由大到小

3.把排序之後的資料 前半部放到Queue(enqueue)
把排序之後的資料 後半部放到stack(push)

4.for(跑n/2次)
a=dequeue (Q);
b=pop (S);
c=axb;
printf("%d_",C);

程式寫完後 輸出的樣子是 15x6 ,14x7 ,13x8....

重點:程式中不能有任何一個array

求大大幫忙一下 這個程式我不太會寫..

This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 sdfgdf2 的頭像
    sdfgdf2

    中文名字日文翻譯, 中文翻譯日文名字, 名字日文翻譯, 日文翻譯名字, 日文翻譯字典發音, 日文翻譯網 漢字,

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