开发者

C++ managed array size

I have t开发者_如何学Pythonhis

function(array<Object^>^ a)

How do I know the length of this array? Like C++, the size has to come with the function?

Thanks,


Function in your case:

function(array<Object^>^ a) {
    auto len = a->Length
}


Remember that All of you classes are from the .net library so in the general case you can allays looks at the generic .net documentation. Here is the array class docs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜