I have the following code:
#include <iostream>
#include <fstream>
#include <string>
#include <ctime>
#include <windows.h>
#include <cstdlib>
enum ERR_CODE {SUCCESS, ERROR};
But as soon as I compile it it gives this error:
C:\Users\User\Desktop\Program.cpp|8|error: expected identifier before numeric constant
C:\Users\User\Desktop\Program.cpp|8|error: expected '}' before numeric constant
C:\Users\User\Desktop\Program.cpp|8|error: expected unqualified-id before numeric constant
C:\Users\User\Desktop\Program.cpp|8|error: expected declaration before '}' token
As soon as I remove the windows.h. This is fixed. Why does it do this?
I am using Code::Blocks as my compiler.