看板 CSIE_Network 關於我們 聯絡資訊
※ 引述《rf0914 (<-使用者代號)》之銘言: : 我是在 Ubuntu 上面用 terminal 跑 : 然後每次用 read 把資料 read 進 char[50000] : 然後就很單純的把東西 printf 出來 : 結果就出現像這樣子的東西: : https://dl.dropbox.com/u/29920876/2012-11-19_214907.jpg
: 就每次 read 進來再 print 出去的東西都會互相干擾 : 然後螢幕就被寫得亂七八糟... : 不知道這樣是正常的嗎?? Orz 正常 : 還有像發文時的 ctrl+P 要去哪裡找代表他的code呢? : 有試著用 Wireshark 但沒找到對應的 code @@ : 謝謝 #include<stdio.h> int main(){ char str; scanf( "%c", &str); printf( "%d\n", str); return 0; } 用上面程式可以自己測試 ctrl+P 是 16 其他組合可以自己嘗試 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.243.42.138
phishingphi:連sample code都附上, 推助教用心 11/21 00:07
rf0914:剛剛才突然看到原來助教回了...Orz 感謝!! 11/21 22:20