结构体成员如何进行访问呢?
第一步创建学生结构体:struct student dancer 第二步定义变量进行赋值操作,dancer.age = 18: strcpy(dancer.name, 'dancer'): dancer.mathScore = 100: dancer.chineseScore = 100: dancer.englishScore = 100: printf('%d \n' , dancer.age) ; printf('%s \n', dancer.name) '
赞0
踩0