0
我有一个int a [10] [2]数组。我可以用其他方式分配的值是这样的:将数组值(行)添加到二维数组C++
int a = someVariableValue;
int b = anotherVariableValue;
for (int i = 0; i < 10; ++i){
a[i][0] = a;
a[i][1] = b;
}
,如:
for (int i = 0; i < 10; ++i){
a[i][] = [a,b]; //or something like this
}
谢谢! :)
谢谢,它的工作:) – Totati
@Attila托特欢迎您。 –