精華區beta EE_DSnP 關於我們 聯絡資訊
※ 引述《nh928 (KOMA【救命】)》之銘言: : 標題: [問題] Handling interrupt : 時間: Sat Nov 5 02:21:23 2005 : : 請問hw2-p3假如題目的要求是按下'a'就停止的話, : : 是不是就不能用handling interrupt了? : : 如果不行,那又要如何做到同樣的動作呢? : : thx! : : -- : ※ 發信站: 批踢踢實業坊(ptt.cc) : ◆ From: 140.112.249.54 : 推 Tonnny:p3沒有看到這個要求耶 @@,你的問題似乎可以參考第39篇! 11/05 16:32 : → ric2k1:題目應該沒說是按下 'a' 吧...? 11/05 18:18 : → timmylin:那篇PDF檔轉換的的有點錯誤 11/05 18:20 我的 PDF 看起來沒有問題耶 Copy it here in case your computer cannot read it connectly... 3. Complete a simple random number generation program as follows: (30 pts) unsigned rnGen(unsigned max) { // count from 0 to (max - 1) // if "control-C" is detected, // stop counting and return this number // else if count >= max, reset and restart counting } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.121.130.225
ric2k1:I mean "correctly"... 11/05 18:49
nh928:我指的是"假如"要這樣做的話,要怎麼做呢? 11/05 23:02