C语言警告waring:‘xxxxxx’declared inside parameter list will not be visible of this definition or declar
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/60ecb7d03895eef3433058d5d12a1aa4.png)
这个警告是提示在头文件中使用了未完全声明的结构体,两种解决办法;
1.在头文件中,使用前向声明来解决结构体未完全声明的问题;
2.在头文件中,添加对teacher.h和student.h的头文件包含,确保在root.h中使用到结构体能够正确引入。
这个警告是提示在头文件中使用了未完全声明的结构体,两种解决办法;
1.在头文件中,使用前向声明来解决结构体未完全声明的问题;
2.在头文件中,添加对teacher.h和student.h的头文件包含,确保在root.h中使用到结构体能够正确引入。