一样的,写初始化列表里面。
用大括号圈起来。
比如
struct A{ int a; float b;};struct B{ int a; struct A m; char b;};struct B n={1,{2,3.3}, 'D'};