cannot convert from int* to int (C++错误)

2025-03-19 18:43:30
推荐回答(1个)
回答(1):

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