close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
Ever want to impress your boss or that special someone?

Learn the basics of wine tasting from glassware to history to tasting techniques in this online course. This is a course you're sure to enjoy!
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
    全站熱搜
    創作者介紹
    創作者 candycrushsaga4 的頭像
    candycrushsaga4

    看見台灣線上看, 看見台灣上映戲院, 看見台灣心得, 看見台灣紀錄片, 看見台灣dvd, 看見台灣原聲帶, 看見台灣下載

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