struct student{ char name[20]; in roll; }; int main() { struct student s1; }
我们可以将结构实例限制为只有一个.即如果我们写struct student s1,s2;,那么它应该给出错误.struct student s1;应该允许哪种方式.我们可以用c或c ++这样做;
struct student s1,s2;
struct student s1;
c c++ struct
c ×1
c++ ×1
struct ×1