c语言间接级别不同_间接寻址不同问题?求解决!

这篇博客介绍了C语言实现链表数据结构的操作,包括添加学生信息、删除学生信息、查找学生信息(FineStu 函数)、排序及释放链表内存的函数。在删除过程中遇到了间接寻址级别的错误,需要调整类型匹配来解决。
摘要由CSDN通过智能技术生成

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

错误18error C2040: “FineStu”:“Student *(int)”与“int ()”的间接寻址级别不同e:\vs\study\study\study.c1441Study

#include

#include

#include

#include

typedef struct StudentManage{ //学生信息结构体

int id;

char name[21];

char sex[3];

short age;

struct StudentManage* next;

}Student;

static Student* G_Head = NULL; //链表头

static Student* G_Current = NULL; //记录当前链表位置

static int G_Count = 0;

//添加学生信息

void AddStu(void){

int temp_sel;

int temp_id;

char temp_name[21];

char temp_sex[3];

short temp_age;

system("cls");

printf("添加学生信息\n");

if (G_Head == NULL){

G_Current = (Student*)malloc(sizeof(struct StudentManage));

G_Head = G_Current;

printf("学号:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值