正在加载图片...
G3)一般来说,在程序设计中不直接引用结构体变量 而是引用结构体变量的某个成员变量。 例如 student2= studentI; 相当于: student2 num=student 1. num student2 score=studenti score 又例如 student1 num=2* student2, num+ student2 num++ sum=studenti score+student2 score(3) 一般来说, 在程序设计中不直接引用结构体变量, 而是引用 结构体变量的某个成员变量。 又例如: student1.num=2*student2.num+1; student2.num++; sum=student1.score+student2.score; 例如 student2=student1; 相当于: student2.num=student1.num; student2.score=student1.score;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有