2024年1月16日

int 与 void* 类型转换报错; long 与void*类型转换成功。

摘要: #include <stdio.h> int main(int argc, char *argv[]) { void *p = NULL; //int test = 100; //int idx2int = reinterpret_cast<int>(p); //error //int idx2in 阅读全文

posted @ 2024-01-16 09:35 huangguanyuan 阅读(21) 评论(0) 推荐(0) 编辑

导航