如何在VisualC ++中声明全局结构数组

时间:2019-02-28 13:36:13

标签: visual-c++

在vc ++中声明结构数组时遇到麻烦

    public: value struct Product {
        public:
            String^ name;
            String^ description;
            String^ category;
            int stock;
            float price;
    };
array<Product^>^ managedArray = gcnew array<Product^>(10);

0 个答案:

没有答案