看板 AndroidDev 關於我們 聯絡資訊
碰到個小問題, 寫個很小的程式, 是個command line的簡單程式而已, 不是視窗程式. printf("please key in!! : \n\r"); scanf("%c", &input); 執行程序: adb shell 先進入platform然後在手動執行, 這樣是OK的. 若直接透過 adb shell /data/test2 再window command window下直接執行(或linux) 就會卡在 please key in!! : 無論按下任合key畫面都無反應, 只能按下ctrl+c 才能解除此狀況, 就是中斷程式. 請問此問題有什麼方法可以解決嗎? 謝謝. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.136.169.251 ※ 編輯: pilipalabon 來自: 114.136.169.251 (04/02 10:31)
gpc:要不要帶argv argc 進去 04/02 16:31
pilipalabon:因為那是警告頁面, 因此是讓使用者確認用的. 04/02 18:46
eleghost:轉錄至看板 C_and_CPP 04/02 21:30
gpc:那要不要寫console或是W32GUI的APP 都可以做到 04/05 13:23