怎样消除警告c++ pointer of type void *'used in arithmetic

如题所述

可以初始化,但是printf那句还需要写成*((int*)a)这样编译器才知道这个地方是需要用整形指针来求值。
温馨提示:答案为网友推荐,仅供参考
相似回答