求c语言大神,指针指向链表的数据如何进行运算和比较?这样写语法是不是错误呢?
高洛峰
高洛峰 2016-11-08 12:30:36
0
1
469

主要问题一直出现在这两行
warning C4047: '==' : 'char [10]' differs in levels of indirection from 'const int '
error C2059: syntax error : 'type'

虽然看得懂英语的意思,但是改来改去还是不行
已经在头文件里声明了结构体了
int count = 0;
typedef struct stu{
char num[10];
char name[10];
char sex[3];
int chinese;
int math;
int english;
float sum;
float avg;

struct stu *next;

}stu_link;

stu_link *head;

初学者 第一次因为作业要求使用链表 希望各位大神帮忙!


高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
三叔

char[10] 指的是结构体里的哪个char数组?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!