我发现创建一个用户定义大小的数组很困难。它显示错误,任何人都可以教我如何做到这一点吗?
int main()
{
int row, column;
cout << "Enter the amount of row" << endl;
cin >> row;
cout << "Enter the amount of column" << endl;
cin >> column;
int array[row][column]; //the value of variable cannot be used as a constant
system("pause");
}