【发布时间】:2015-10-19 06:06:32
【问题描述】:
Struct* a = new Struct{1,2,3}; 这样的短语是否有效?
它编译和运行都很好,但我想知道幕后是否有什么奇怪的事情发生。
struct Struct {
int a;
int b;
int c;
}
【问题讨论】:
-
请贴出
struct的定义 -
取决于
Struct是什么。 -
你是什么意思?
标签: c++ pointers struct initialization aggregate