#include #include #include #include #include int main() { char str[] = "全角漢字 String"; CStringT >> s1; CStringT >> s2; setlocale(LC_ALL, "japanese"); printf("%s %d\n",str,strlen(str)); s1 = str; printf("%s %d\n",s1,s1.GetLength()); s2 = str; wprintf(L"%s %d\n",s2,s2.GetLength()); _getch(); return 0; }