该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
错误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("学号: