//Coded by Nick Dichev
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int inventory[5];
inventory[0] = "Sword";
inventory[1] = "Sheild";
inventory[2] = "Health Potion";
int menuchoice;
cout << "Welcome to Generic War Game, Please select a choice\n";
cout << "[1] Inventory | [2] Battle | [3] Store | [4] Exit\n";
cin >> menuchoice;
if( menuchoice = 1)
cout <<"Your inventory consists of " << inventory;
if( menuchoice = 2)
if( menuchoice = 3)
if( menuchoice = 4)
exit(1);
system ("PAUSE");
return 0;
}
When I try to compile I get
"Invalid conversion from cont char to int"
Any ideas?


Sign In
Create Account


Back to top









