有下列表示按钮的结构体和声明语句 struct BUTTON{ int x y; int width height; char name[20];
已帮助 人
有下列表示按钮的结构体和声明语句 struct BUTTON{ int x,y; int width,height; char name[20]; }; struct BUTTON top[10],*p=top; 下列哪个输入“按钮”名称的语句是正确的?(多选题)
A.cin>>p.name;
B.cin>>p->name;
C.cin>>p[0]->name;
D.cin>>p[0].name;
![有下列表示按钮的结构体和声明语句 struct BUTTON{ int x y; int width height; char name[20];](/uploads/allimg/6-2516355Q9.jpg)
回答
共1条回复-
cin>>p->name;;cin>>p[0].name;
