看板 PttCurrent 關於我們 聯絡資訊
※ 引述《morrris (morrris)》之銘言: : 想在兩個fprintf中間加一段程式,用來讀進某個檔案(ASCII圖), : 用more("etc/xxx", NA);可以嗎??...^^"" 不行,more 是顯示到螢幕上。 你要真的去開檔/讀檔/寫檔才行。 : snprintf(mystatus, sizeof(mystatus), : ANSI_COLOR(1;33;44) "[%d/%d 星期%c%c %d:%02d]" : ANSI_COLOR(1;33;45) "%-14s" : ANSI_COLOR(1;30;47) " 目前船上有" ANSI_COLOR(31) : " %d " ANSI_COLOR(30) "人 , 我是" ANSI_COLOR(31) "%s" : ANSI_COLOR(30) , : i = strlen(mystatus) - (3*7+25); : 那個3*7+25是代表什麼意思..@@" 每個 ANSI_COLOR 佔 3 個 byte 出現了 7 個 ANSI_COLOR ANSI_COLOR 裡面包的東西加起來有 25 個 byte 確實太 magic 了 orz 整個 lr 都是在亂搞 急就章的東西 ^^ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.30.49
morrris:恩~原來如此,了解哩,感謝~~^^ 12/05 00:17