I don't know what header guards are but I'm close...The variables are all defined in my main
class. I'm gettin an error error C2664: 'Player::Player(std::string,std::string,double)' : cannot convert parameter 3 from 'std::string' to 'double'
Player.cpp
Code:
#include <iostream>
#include <string>
#include "Player.h"
using namespace std;
Player::Player (string n, string p, double pts)
{
name = n;
pos = p;
points = pts;
}
Player.h
Code:
#include <string>
using namespace std;
class Player
{
double points,value;
string name, pos;
public:
Player (string,string,double);
};
main
Code:
Player a(name, pos, ppoints);