C 日本語文字列 新しいページはコチラ
提供: yonewiki
(→マルチバイト文字列、ワイド文字列) |
(→マルチバイト文字列、ワイド文字列) |
||
84行: | 84行: | ||
#include<tchar.h> | #include<tchar.h> | ||
int main() { | int main() { | ||
− | + | _tsetlocale( LC_ALL, _T("Japanese")); | |
TCHAR cStr0[]=_T("よねウィキyonewiki"); | TCHAR cStr0[]=_T("よねウィキyonewiki"); | ||
_tprintf(_T("cStr0=%s sizeof=%d StrCount=%d"), cStr0,sizeof(cStr0),_tcslen(cStr0)); | _tprintf(_T("cStr0=%s sizeof=%d StrCount=%d"), cStr0,sizeof(cStr0),_tcslen(cStr0)); |