这可能吗?
我知道您可以使用列表语法初始化结构.
IE
struct Foo f = { a, b, c}; return f;
有可能像在类和构造函数中那样在一行中执行此操作吗?
谢谢
c++ struct
c++ ×1
struct ×1