我記得在C#里邊可以new int[xxx]
我想在C++里邊試試
結(jié)果直接這樣了
E:\C++ and c proj file\Snake\mainwindow.cpp:93: error: C2059: 語法錯(cuò)誤:“]”
出錯(cuò)的代碼:
s->body[] = new QPoint[s->bodylen];
求原因??!能擴(kuò)充數(shù)組!
光陰似箭催人老,日月如移越少年。
微信掃碼
關(guān)注PHP中文網(wǎng)服務(wù)號(hào)
QQ掃碼
加入技術(shù)交流群
Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號(hào)