Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Eventbrite makes it happen

Create an event and sell tickets online through Eventbrite. It's simple! Sign up and get started 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
    全站熱搜
    創作者介紹
    創作者 kkoki0httzobg 的頭像
    kkoki0httzobg

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

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