Compiler Error C2748
managed or WinRT array creation must have array size or array initializer
A managed or WinRT array was ill formed. For more information, see array.
The following sample generates C2748 and shows how to fix it:
// C2748.cpp
// compile with: /clr
int main() {
array<int> ^p1 = new array<int>(); // C2748
// try the following line instead
array<int> ^p2 = new array<int>(2);
}
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre