c语言编程说未找到标识符,C语言未找到标识符

本文介绍了一段C语言代码,用于创建学生信息表和成绩表的结构体,并提供了输入学生信息和成绩的函数。在实现过程中遇到了'未找到标识符'的错误,特别是针对`t->mark=creat_score();`这一语句。文章讨论了如何尝试通过增加声明来解决此问题,但并未成功,并寻求解决方案。
摘要由CSDN通过智能技术生成

#include

#include

#include

#include

#define M 20

typedef struct node //学生信息表结构

{

int number;

char name[20];

struct score *mark;

struct node *next;

}lnode,*linklist;

typedef struct score //学生成绩表结构

{

char courses[20];

int semester;

int result;

struct score *next;

}scores,*pscore;

typedef struct binode //宿舍树结构

{

int data;

struct binode *lchild,*rchild;

struct node *head;

}bnode,*bitree;

linklist creat_stu() //输入学生信息

{

linklist t,head;

int x;

printf("please enter the student's number:");

scanf("%d",&x);

head=(linklist)malloc(sizeof(lnode));

t=head;

while(x>0)

{

t->next&

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值