//#include
include”iostream”
include”tchar.h”
include”windows.h”
include”cstring”
using namespace std;
int main()
{
wchar_t* strW = L”lishuyu”;
wchar_t* strW1 = NULL;
char* str = “lishuyu”;
strW1 = strW + wcslen(strW) - 3 ;
cout<<strW<<endl;
wcout<<strW<<endl;
cout<<str<<endl;
cout<<endl;
cout<<"wsclen(L\"lishuyu\") = "<<wcslen(strW)<<endl;
cout<<"strlen(\"lishuyu\") = "<<strlen(str)<<endl;
cout<<endl;
cout<<strW1<<endl;
wcout<<strW1<<endl;
cout<<endl;
int count =6;
BYTE* pByte = new BYTE[count];
for(int i=0;i<count;i++)
pByte[i] = i+1;
cout<<"value of pByte(unsigned char):"<<endl;
for(int i=0;i<count;i++)
cout<<"pByte["<<i<<"] = "<<pByte[i]<<endl;
cout<<endl;
cout<<"value of pByte(int):"<<endl;
for(int i=0;i<count;i++)
cout<<"pByte["<<i<<"] = "<<(int)pByte[i]<<endl;
cout<<endl;
CHAR ch1 = 1,ch2 = '1';
cout<<"ch1 = "<<ch1<<endl;
cout<<"ch1 = "<<(int)ch1<<endl;
cout<<"ch2 = "<<ch2<<endl;
cout<<"ch2 = "<<(int)ch2<<endl;
cout<<endl;
WCHAR wch1 = 1,wch2 = '1';
wcout<<"wch1 = "<<wch1<<endl;
wcout<<"wch1 = "<<(int)wch1<<endl;
wcout<<"wch2 = "<<wch2<<endl;
wcout<<"wch2 = "<<(int)wch2<<endl;
cout<<endl;
TCHAR tch1 = 1,tch2 = '1';
cout<<"tch1 = "<<tch1<<endl;
cout<<"tch1 = "<<(int)tch1<<endl;
cout<<"tch2 = "<<tch2<<endl;
cout<<"tch2 = "<<(int)tch2<<endl;
cout<<endl;
system("pause");
return 0;
}