#include <iostream>
#include <cctype> //为了使用strlen
#include <windows.h> //为了使用lstrlen
using namespace std;
int main()
{
char str[12] = "hello";
wchar_t strw[12] = L"hello";
cout << strlen(str) << endl; //5
//cout << lstrlen(strw) << endl; //5
//cout << lstrlen((LPCWSTR)str) << endl; //3
cout << sizeof(str) << endl; //12
return 0;
}