#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; }
70,020
社区成员
243,264
社区内容
加载中
试试用AI创作助手写篇文章吧