How to initialize a list of struct with constructor in c++

前端 未结 0 1341
攒了一身酷
攒了一身酷 2020-12-02 10:27

I have a struct with a constructor likes:

struct Rectangle
{
    int width;
    int height;

    Rectangle(int _width, i         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题