%S(大写S)

wchar_t value[512] = { 0 };
swprintf(value, L"%S", "what are you doing?");

printf("%S\n", value);


%S:用来将ANSI字符写入wchar_t内存,或者将wchar_t内存打印出来


TCHAR szBuffer[128] = { 0 };
_stprintf(szBuffer, _T("%s"), _T("hello world") ); 都是wchar_t时,用_T("%s"),小写s

你可能感兴趣的:(%S(大写S))