short (*)[5]是啥?程序里的:\x05short* p[5];\x05p=new short[7][5];出错:'=' :cannot convert from 'short (*)[5]' to 'short *[5]'
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/17 00:21:53
![short (*)[5]是啥?程序里的:\x05short* p[5];\x05p=new short[7][5];出错:'=' :cannot convert from 'short (*)[5]' to 'short *[5]'](/uploads/image/z/14667337-1-7.jpg?t=short+%28%2A%29%5B5%5D%E6%98%AF%E5%95%A5%3F%E7%A8%8B%E5%BA%8F%E9%87%8C%E7%9A%84%EF%BC%9A%5Cx05short%2A+p%5B5%5D%3B%5Cx05p%3Dnew+short%5B7%5D%5B5%5D%3B%E5%87%BA%E9%94%99%EF%BC%9A%27%3D%27+%3Acannot+convert+from+%27short+%28%2A%29%5B5%5D%27+to+%27short+%2A%5B5%5D%27)
short (*)[5]是啥?程序里的:\x05short* p[5];\x05p=new short[7][5];出错:'=' :cannot convert from 'short (*)[5]' to 'short *[5]'
short (*)[5]是啥?
程序里的:
\x05short* p[5];
\x05p=new short[7][5];
出错:
'=' :cannot convert from 'short (*)[5]' to 'short *[5]'
short (*)[5]是啥?程序里的:\x05short* p[5];\x05p=new short[7][5];出错:'=' :cannot convert from 'short (*)[5]' to 'short *[5]'
改成short(*p)[5]
考虑到运算符的优先级
先谢啦! 写一篇小短文,在五页纸左右,双倍行距 写一篇短文章,大约5张纸左右,正反面都要写。 \\(^o^)/~