Fw: [問題] adb shell 問題

看板C_and_CPP (C/C++)作者 (eleghost)時間14年前 (2012/04/02 21:30), 11年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
※ [本文轉錄自 AndroidDev 看板 #1FUG5_yP ] 碰到個小問題, 寫個很小的程式, 是個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 進去 ※ 發信站: 批踢踢實業坊(ptt.cc) ※ 轉錄者: eleghost (114.35.209.216), 時間: 04/02/2012 21:30:22 ※ 編輯: eleghost (60.248.58.121), 07/01/2014 14:27:46
文章代碼(AID): #1FUQdlz0 (C_and_CPP)
文章代碼(AID): #1FUQdlz0 (C_and_CPP)