This compiles and runs on mingw. Can you write out
not just the warnings but the command line arguments
used to invoke the compiler and linker?
Code:
/* Quest Open RPG
* Ryan Oldenburg
* Completion: 15%
* Version 1.0
*/
#include <windows.h>
#include <iostream>
#include <string>
using namespace std;
using std::string;
class player {
int health;
int weapon;
int shield;
int arrows;
int magic;
int bombs;
int gold;
int bow;
public:
player(int healthv,
int weaponv,
int shieldv,
int arrowsv,
int magicv,
int bombsv,
int goldv,
int bowv);
};
//Constructor
player::player(int healthv,
int weaponv,
int shieldv,
int arrowsv,
int magicv,
int bombsv,
int goldv,
int bowv) : health(healthv),
weapon(weaponv),
shield(shieldv),
arrows(arrowsv),
magic(magicv),
bombs(bombsv),
gold(goldv),
bow(bowv)
{
}
int main()
{
int x;
int y;
string title = "Quest Open RPG";
for(int a = 0; title[a] != '\0'; a++)
{
cout << title[a];
Sleep(50);
}
return 0;
}