int main()
{
setlocale( LC_ALL, ".437" ); //设置编码区域
SetConsoleOutputCP(437); //设置输出代码页
char *a ="123";
char b[4];
b[0] = ~a[0];
b[1]=~a[1];
b[2] = ~a[2];
b[3]='\0';
string str=b;
str =str+"'";
cout<<str<<endl;
cout<<b[0]<<" "<<b[1]<<" "<<b[2]<<endl;
cout<<b<<endl;
cout<<GetConsoleOutputCP(); //得到输出代码页
getchar();
return 1;
}