I'm trying to create my own type of variable, and my compiler won't have it. I can fix the errors it gives me, but by doing so I would have to change what I'm actually DOING. What's wrong?
--------------------Configuration: Windows - Win32 Debug--------------------
Compiling...
Windows.cpp
c:\program files\microsoft visual studio\vc98\include\david.h(14) : warning C4091: 'typedef ' : ignored on left of 'class _ERROR' when no variable is declared
c:\program files\microsoft visual studio\vc98\include\david.h(14) : error C2143: syntax error : missing ';' before 'constant'
c:\program files\microsoft visual studio\vc98\include\david.h(14) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Windows.exe - 2 error(s), 1 warning(s)
PHP Code:
typedef class _ERROR
{
bool NewError();
char *Message;
bool MessageSwitch;
bool SwitchOff();
bool SwitchOn();
}ERROR;