您需要使用正确的路径来包含 'student.h' 文件。如果该文件在您的项目文件夹中的子文件夹中,则应使用相对路径来包含它。如果该文件在系统目录中,则应使用绝对路径。您可以检查文件的位置并相应地更新 #include 语句。 例如,如果 'student.h' 文件在项目文件夹中的 'include' 子文件夹中,则可以使用以下语句:

#include "include/student.h"
解决 C 语言中 'student.h' 文件包含路径错误

原文地址: https://www.cveoy.top/t/topic/mQ1O 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录