Tuesday, April 12, 2011

header file - to do!

Important: In the header file for your code, at the top, will be 2 lines like this:

#ifndef _STUDENT_AI_H_
#define _STUDENT_AI_H_

Please modify these by inserting your code number after STUDENT like this:

#ifndef _STUDENT##_AI_H_
#define _STUDENT##_AI_H_

where ## is your two digit code number.

Also, if you add any new classes to your assignment file, such as a map class, use your student code in the name of that class also. For example:

class myShipMap##
{
...
};

That way we will avoid namespace conflicts. Make sure that all of your classes are submitted within the same two files (the .h and .cpp files). This is not great coding style but it will make compiling the group game much easier!

No comments:

Post a Comment