如何初始化指向文字数组的指针? 我希望*grid指向新分配的int数组{1,2,3}.
int *grid = new int[3]; *grid = {1, 2, 3};
谢谢.
c++ arrays pointers
arrays ×1
c++ ×1
pointers ×1