1.程序通过定义学生结构体变量,存储学生的学号、姓名和3门课的成绩。函数fun的功能是:将形参a所指结构体

[复制链接]
查看11 | 回复2 | 2012-4-25 15:13:30 | 显示全部楼层 |阅读模式
struct student_tag{
char stunum[10];
char stuname[20;
double chinese, math, English;}stu_table;typedef struct student_tag STU;void fun(struct student a);int main(){
STU b = { " 12345678", "zhangsafeng", 89.9 , 90,0 , 90,0};
fun(b); return 0;}...
回复

使用道具 举报

千问 | 2012-4-25 15:13:30 | 显示全部楼层
typedef struct{int Snumber[10];char name[10];float english,math,computer;}Sqlist;Sqlist *a;//指向它就可以了...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行