看板 FreeBSD 關於我們 聯絡資訊
我把這段程式碼 #include <stdio.h> #include <stdlib.h> int main(void) { char c = '\''; printf("單引號字元 %c \n", c); printf(" \" \061 個 \x48\x45\x4c\x4c\x4f\x21 \" \n"); system("/bin/df -h"); return 0; } 開啟vi貼上 一貼上馬上就變奇怪的東西了 #include <stdio.h> #include <stdlib.h> int main(void) { char c = '\''; printf("\xb3\xe6\xa4\xde\xb8\xb9\xa6r\xa4\xb8 %c \n", c); printf(" \" \061 \xad\xd3 \x48\x45\x4c\x4c\x4f\x21 \" \n"); system("/bin/df -h"); return 0; } 那是什麼碼啊? 我可以在vim和joe中正常看到中文字,也正常編輯(所以不是要問怎麼看到中文字哦...) -- ︵︵ █▔◣ █▔█ █▔▔ █▔█ █▆▉ █ █▔█ █◣█ █▔ █◣︵︵ █ █ █▁◤ █▁▁ █▁█ ▉▉▉ █ █▁█ █◥█ █ █ 夢之大地 逼逼ㄟ四 █▁◤ █ █ █▁▁ █ █ ▉▉▉ █▁ █ █ █ █ █▁◤ ※ Origin: <bbs.ccns.ncku.edu.tw> ◆ From: 220.142.31.75