printf 的%s,用來打印ANSI字符串
printf的%S,用來打印UNICODE字符串
#include <Windows.h>
#include <stdio.h>
#include <tchar.h>
#include <iostream>
using namespace std;
int main()
{
printf("my name is %S",L"XYZ");
return 0;
}
改成printf(“my name is %S”,”XYZ”)
改成printf(“my name is %s”,L”XYZ”)
sprintf的%s同理