C语言如何延时显示中文字符串
#include "stdio.h" #include "windows.h" int main() { char sText[20] = { "多字节字符串!OK!" }; DWORD dwNum = MultiByteToWideChar(CP_ACP, 0, sText, -1, NULL, 0); printf("dwNum = %d", dwNum); for (int i = 0; i < 20; i=i+2) { printf("%c%c", sText[i],sText[i+1]); printf("%d", i); } system("pause"); return 0; }
Fist day