如题,求大神啊。。。
新手完全不懂啊,我试了好多方法都不行。
最接近的一种方法是:
Array< IVector<int>^>^ WindowsPhoneRuntimeComponent::GetVector(int first, int second)
{
IVector<int>^ iv = ref new Vector<int>;
Array< IVector<int>^ >^ aiv = ref new Array<IVector<int>^>(second);
for(int i = 0 ; i < first; i++)
{
aiv[i] = ref new Vector<int>(arr2[i]);
}
return aiv;
}
}
这个函数在类的外部定义时能编译通过。
放进类的.h文件之后就无法通过声明...出现缺少分号,缺少类型说明的莫名问题。。。求解啊。。