开发者

C++ managed array size

开发者 https://www.devze.com 2023-02-24 11:29 出处:网络
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?

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

精彩评论

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