struct student { int num; char name[20]; char sex; }; student["num"]=10; 转载于:https://www.cnblogs.com/quke123/p/4101389.html