d02 ex02 multiplications sans float et sans long pbm abandon

This commit is contained in:
Hugo LAMY
2022-02-18 17:01:29 +01:00
parent 787336b06d
commit 6d2c0f9f29
7 changed files with 214 additions and 84 deletions

View File

@@ -10,7 +10,6 @@ class ClapTrap {
public:
ClapTrap( void ); // default/parametric constructor
ClapTrap( std::string name ); // default/parametric constructor
ClapTrap( ClapTrap const & src ); // copy constructor
~ClapTrap( void ); // destructor
@@ -28,7 +27,7 @@ public:
protected:
std::string _name;
std::string const _name;
std::string _class;
int _hit;
int _energy;
@@ -40,6 +39,8 @@ protected:
private:
ClapTrap( void ); // default/parametric constructor
static int _totalNumber;
};

View File

@@ -2,7 +2,6 @@
ScavTrap::ScavTrap( std::string name ) : ClapTrap(name) {
_name = name;
_class = "ScavTrap";
_hit = 100;
_energy = 50;

Binary file not shown.