猿问

请指出下面代码的错误点,谢谢。

 #include<iostream>
using namespace std;
struct people
{
 char name[3];int age[3];
}lo[2]={
 {
  'ghs','xsxs','sxs'
 },{
  12,12,12
 }
};
main()
{
 people(lo);
 cout<<lo.age[0]<<endl;
}

drj
浏览 1290回答 1
1回答

思君满月

虽然我放弃c++多年,但是我还是一眼就看出来了,这个问题我是不会的
随时随地看视频慕课网APP
我要回答