How to display Chinese string C language delay

#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;
}

  

Guess you like

Origin www.cnblogs.com/NULL-ROOT/p/11494095.html