Passing array values to struct constructor

后端 未结 0 1448
轮回少年
轮回少年 2020-12-29 09:08

Is it possible to pass values from array to struct constructor in better way then:

struct A {
std::string a;
std::string b;
};

std::string array[2] = {"         


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