Code:
struct Weapon
{
string Name,Fname;
int DamMin,DamRange;
};
struct Room
{
string Exits[10],Item[5][3],Exit;
int EncLvl,Quest,EncChance;
bool Merchant;
};
struct Armor
{
string Name,Fname;
int AC,LimitMod;
};
struct Amulet
{
string Name,Fname;
int ModType, ModPower;
};
struct Enemy
{
string Name;
int HP,MaxHP,MaxMP,MP,DamMin,DamRange,Magik[22],Magic[22],Inti,Mag;
};
struct Player
{
double Dodge,Spell,Attack;
string Fname,Lname,Inventory[100][3],Class;
int MaxHP,HP,MaxMP,MP,Magik[22],Stats[5],Mods[5],Exp,Quest,InventPlace,Limit,Limits[10],Level,Save,Invent[100],Gold;
Weapon Wep;
Amulet Ammy;
Armor Armour;
};
struct Game
{
string Path;
bool AutoSave;
Room Croom;
Player Cplayer;
Enemy Cenemy[3];
};
int main()
{
string a;
ifstream fin;
Sleep(3000);
Game Info; // it says the the error is on this line <---
clrscr();
cout<<"Final Fantasy: Enigma Chronicles\n\n\n";
cin>>a;
while (a!="quit")
{
if (a=="instructions")
Instructions();
else if (a=="new")
{
cin>>a;
NewGame(Info,fin);
}
else if (a=="load")
{
cin>>a;
LoadGame(Info,fin);
}
else if (a=="quit")
return 0;
else
cout<<"What?"<<endl;
}
return 0;
}
all of the functions in there are defined and so are all of the functions that are inside of those.