I\'ve been trying to include a structure called \"student\" in a student.h
file, but I\'m not quite sure how to do it.
My student.h
file code c
You should not place an using
directive in an header file, it creates unnecessary headaches.
Also you need an include guard in your header.
EDIT: of course, after having fixed the include guard issue, you also need a complete declaration of student in the header file. As pointed out by others the forward declaration is not sufficient in your case.