I've created two classes in c++ one called compte and the other bank
class compte
{
public:
compte();
compte(long,float);
virtual ~compte();
long Getnum() { return num; }
void Setnum(long val) { num = val; }
float Getsolde() { return solde; }
void Setsolde(float val) { solde = val; }
void deposerArgent(float);
void retirerArgent(float);
virtual void afficher ();
protected:
long num;
float solde;
};
And the other is banque:
class banque
{
public:
banque();
virtual ~banque();
string Getnom() { return nom; }
void Setnom(string val) { nom = val; }
string Getlieu() { return lieu; }
void Setlieu(string val) { lieu = val; }
list<compte*> Getcompte() { return compte; }
void Setcompte(list<compte*> val) { compte = val; }
protected:
private:
string nom;
string lieu;
};
But I'm getting 2 errors in the following line of banque
class
list<compte*> Getcompte() { return compte; }
:
expected primary-expression before ';' token expected unqualified-id before '=' token