Well, I hope, I'd be able to explain...^^
The first four errors were that there was a comment beginning (/*) already inside of a comment. The adequate code lines are these ones:
(lines 21 to 26)
1 2 3 4 5 6
|
/**********************************************************************/
/* @ESMS.CPP
/*
/* The game running file
/*
/**********************************************************************/
|
If I'm right, you have to end the comment at each line if you want to 're-start' it every line. So your code should look like this:
1 2 3 4 5 6
|
/**********************************************************************/
/* @ESMS.CPP */
/**/
/* The game running file */
/**/
/**********************************************************************/
|
See the comment endings (*/) at the end of each line? If they miss, the compilet complains about a comment within a comment. =)
So this is done. But there are also 2 more errors and one warning.
The 'first' error is about your
#include "game.h"
. I don't know if you compiled the source code as itself or within a project. Anywy this error means that the compiler could not find a file named like this. If you have the header file in anoher directory than the working directory, you have to say this to the compiler. E.g. in DEV-C++ you have to hit ALT+P or go by the menu to "Project -> Project Options". Then to the tab "Directories", in there to "Include Direcories" and there youenter the path of the directory your header is in.
The warning is that you ignore the
#pragma wrning
. If the compiler says that, he's almost everytime right. So only delete this line from your source code and then, the copiler should not complain abut that.
The 'second' error is abut the fact that you have an array named
team[2]
and it's of the data value
struct teams
. If you don't code, what this
teams
thing is, you will not achieve any progress. Also, if you defined
teams
in
game.h
, you don't have to write
struct teams
. A single
teams
is ok =)
If you have any questions, ask them.
@others: If you have any suggestions for improvement, let me know this =)