C++编译提示“cannot convert from ✀int✀ to ✀int ** ✀”

2025-02-26 10:52:18
推荐回答(1个)
回答1:

&p = a
指针p本来存储的就是地址,&p又是什么?
写成*p=a就对了,
意思是将整数a赋给p所指向的地址内