diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-02 11:06:54 +0200 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2015-05-02 11:06:54 +0200 |
| commit | 6b8a144bd192de206e11a171841ec6161d11b6aa (patch) | |
| tree | 0e0d17f8571750233c4b3008b45e2284d2b03f15 /src/main.cpp | |
| parent | 01b25accba1a5329e220aa647255d2c2b284c16e (diff) | |
Correct bugs
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index 217fe81..cfb0c7d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,15 +19,15 @@ int main() { - Cell<StringElement> cell1("loic"); - Cell<StringElement> cell2("loic"); + Cell<StringElement> *cell1 = new Cell<StringElement>(""); + Cell<StringElement> *cell2 = new Cell<StringElement>("i"); - if(cell1==cell2){ - std::cout << "Egale" << std::endl; + if(cell2->isEmpty()){ + std::cout << "Empty" << std::endl; } else{ - std::cout << "Différent" << std::endl; + std::cout << "Not empty" << std::endl; } //Init random |
