I'm getting an error in programming a simple text based rpg in VC++.
Here's the code that has the error:
// armor.h
#include <string>
struct armor
{
std::string name;
int armorRating;
};
And here's the error i'm getting:
1>c:\documents and settings\ian\my documents\visual studio 2005\projects\rpg_1\rpg_1\armor.h(6) : error C2011: 'armor' : 'struct' type redefinition
1> c:\documents and settings\ian\my documents\visual studio 2005\projects\rpg_1\rpg_1\armor.h(6) : see declaration of 'armor'
Any help would be appreciated.