Re: [問卦] How I can write Chinese?

作者: bigbite (子子孫孫永保用)   2014-09-17 15:46:57
剛有一篇用C的, 不過不專業, 本魯給各位示範一下正確寫法
#include <stdio.h>
int main()
{
unsigned char chinese[] = {164, 164, 164, 229};
int i;
for (i=0; i<4; ++i)
printf("%c", chinese[i]);
return 0;
}
作者: Leeng (Leeng)   2014-09-17 15:47:00
#include <windows.h> system("pause"); 不然會跳掉
作者: kuninaka   2014-09-17 15:50:00
用 windows 不專業
作者: bigbite (子子孫孫永保用)   2014-09-17 15:54:00
本魯都用最潮的code blocks不用pause

Links booklink

Contact Us: admin [ a t ] ucptt.com