开发者

How do I build a vector of system::drawing::rectangle

开发者 https://www.devze.com 2023-03-06 15:00 出处:网络
How do I build a vector of system::drawing::rectangle in c++? I tried vecor of std but got an error message that mixed types are not supported.W开发者_运维百科hat can I do?You can use the List<T>

How do I build a vector of system::drawing::rectangle in c++? I tried vecor of std but got an error message that mixed types are not supported. W开发者_运维百科hat can I do?


You can use the List<T> class.


You can use an Array or List or other .Net collection.

Example:

List<System::Drawing::Rectangle>^ rectangles = gcnew List<System::Drawing::Rectangle>();

Note - If you are using VS2010 you can simplify this to:

auto rectangles = gcnew List<System::Drawing::Rectangle>();
0

精彩评论

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