Creating Hedaer files for C++
Posted: Sun Apr 04, 2010 8:31 am
Hey all, I am trying to create a Header file for my C++ program. However I keep on getting the following error message
Here is the code for the header file. I havnt yet added code to the functions I was just checking it would compile in case there were some really obvious mistakes so far.
Code: Select all
c:\users\cyberstu\documents\visual studio 2008\projects\project_stu\project_stu\functions.h(34) : fatal error C1070: mismatched #if/#endif pair in file 'c:\users\cyberstu\documents\visual studio 2008\projects\project_stu\project_stu\functions.h'
Code: Select all
//Header guards
#ifndef ADD_H
#define ADD_H
int DrawMenu();
void CreateChar();
void LoadGame();
void NewGame();
int DrawMenu()
{
//Some code here
}
void CreateChar()
{
//Some code here
}
void LoadGame()
{
//Some code here
}
void NewGame()
{
//Some code here
}