short (*)[5]是啥?程序里的:\x05short* p[5];\x05p=new short[7][5];出错:'=' :cannot convert from 'short (*)[5]' to 'short *[5]'

来源:学生作业帮助网 编辑:作业帮 时间:2024/10/07 17:51:09
short (*)[5]是啥?程序里的:\x05short* p[5];\x05p=new short[7][5];出错:'=' :cannot convert from 'short (*)[5]' to 'short *[5]'
x͐N@F_ev- 1R ƍm2EԒXRLR"P "$ƀM#3] "AW\soXܖ *bX2Cn)fy48MqH CѬ$4(n`aI0h-$YE9Y͇o,^ U"\4 7ʗ([֚ßnt5_-yE٧ֳ_QrJhebAeD^k;kq=/*YI|@pCF];3ĞN4:%nzu{jvR)6#gb;8<

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