我想将一个动态大小的2D数组作为参数传递给一个函数。我知道这个问题在很多地方已经讨论过很多次了,但即使在应用了[]和*的所有排列和组合之后,我仍然无法让这个问题起作用。#include<iostream>using namespace std;
int bestpath(int *A, int N, int x, int y[y]; // Error: Invalid type 'i
include <stdlib.h>
long copyField(long targetField, long sourceField, intlength);
/*sField equals sourceField; tFieldlong sField[]={12341234,2343233,3432424,4235
这个错误-数组下标的无效类型'intint‘不断出现,我不知道如何解决它。我需要解决方案的变量才能工作,如果删除它们,我就是在倒退。这个错误是在空的convert2DimSort函数下发现的,特别是嵌套循环中的语句。#include #include 使用命名空间std; //全局 int i,j,temp; int row,col; const int sizeRow=4; const int<