C++ 打印变量地址

1.介绍 // 指针类型参数 void funB(map<uint32_t,string>* mp){ (*mp)[5]="a";// 先解引用指针,然后再进行索引操作。[]优先级更高,a56爆大奖在线娱乐*时要加括号 cout<<"funB: "<<static_cast<void *>(mp)<<"\n";//
posted @ 2024-05-30 00:03  lypbendlf  阅读(18)  评论(0编辑  收藏  举报