summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 11:06:54 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 11:06:54 +0200
commit6b8a144bd192de206e11a171841ec6161d11b6aa (patch)
tree0e0d17f8571750233c4b3008b45e2284d2b03f15 /src/main.cpp
parent01b25accba1a5329e220aa647255d2c2b284c16e (diff)
Correct bugs
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
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