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]'

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^)/~