我道歉,因为这可能是一个愚蠢的问题,但是:我想使用一个函数来填充我的矩阵,但正在努力将其作为争论。谁能帮忙?
void FillMyMatrix(MyMatrixType& thisIsTheNameOfTheLocalVariableInTheFoo)
{
// fill your matrix called thisIsTheNameOfTheLocalVariableInTheFoo
// let's say the MyMatrixType has an Insert(int, int, int) method.
thisIsTheNameOfTheLocalVariableInTheFoo.Insert(1, 2, 3);
}