开发者

Does the immediate window provide a nice way to display a primitive array?

开发者 https://www.devze.com 2023-01-21 02:08 出处:网络
I dynamically assigned an array as follows: unsigned char **nonces=new unsigned char*[n_cases] Is there a way to nicely print it out in the immediate window? Alternatively, it would be nice to make

I dynamically assigned an array as follows:

unsigned char **nonces=new unsigned char*[n_cases]

Is there a way to nicely print it out in the immediate window? Alternatively, it would be nice to make the locals window display 开发者_如何学编程it properly.


Standard problem with C arrays, not even the debugger can know how long they are. You have to tell it that with a watch expression like nonces[0],12. You tagged this with C++/CLI, it is not a problem with managed arrays:

array<array<unsigned char>^>^ nonces = gcnew array<array<unsigned char>^>(n_cases);
nonces[0] = gcnew array<unsigned char>(42);
// etc..
0

精彩评论

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

关注公众号