70,035
社区成员
发帖
与我相关
我的任务
分享#include <iostream>
using namespace std;
int main()
{
int x = 0;
cout<<"0x"<<hex<<x<<endl;
char *p;
p =(char*)&x;
*p = 0x45;
p ++;
*p = 0x26;
cout<<"0x"<<hex<<x<<endl;//按16进制输出
return 0;
}