摘要: #include <iostream> #include <map> int main() { std::map<int, int> myMap = { {1, 100}, {2, 200}, {3, 300} }; void* ptr = &myMap; // 安全转换 + 检查 if (!ptr 阅读全文
posted @ 2025-05-26 11:17 leochan007 阅读(11) 评论(0) 推荐(0)