你确定是c++么 c里需要写 struct A a[10]类似这样的贴错误提示
报的什么错呀,贴出来瞧一眼
参数名重复?
明明是结构体,用容器试试?
struct A{int a;int b;};//这里是需要一个分号的!