运行报错redefinition of “struct student”
加个这个试试
#ifndef __TOOLS_H__ #define __TOOLS_H__ #endif
改为你的头文件
你应该有多个文件包含这个头文件吧,那就重复定义了