Sign in to follow this  

I am baffled, what could I be doing wrong?

Recommended Posts

#include <allegro.h> #include <cstdlib> #include <time.h> #define edeadplace 250 #define pdeadplace 70 #define p 100 #define e 540 #define y 240 #define center 320 srand(time(NULL)); //error line I am totally baffled! This is only the first few lines of my program, and I already have an error! "Expected constructor, destructor, or type conversion before '(' token" "Expected ',' or ';' before '(' token" What could I be doing wrong? I have done srand correctly as in my for dummies book. What could it be? Btw, almost all lines lines after this have the exact same error.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this