aboutsummaryrefslogtreecommitdiff
path: root/oop2eindopdr/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'oop2eindopdr/main.cpp')
-rw-r--r--oop2eindopdr/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/oop2eindopdr/main.cpp b/oop2eindopdr/main.cpp
index 4a1e8c4..873e273 100644
--- a/oop2eindopdr/main.cpp
+++ b/oop2eindopdr/main.cpp
@@ -3,6 +3,7 @@
#include "main.h"
#include "Pokedex.h"
+#include "PokemonCard.h"
using std::endl;
using std::cout;
@@ -25,11 +26,12 @@ int interactive_mode() {
if (card_count == 0) {
cout << "no cards found" << endl;
} else if (card_count == 1) {
+ cards[0]->fetch_market_value();
cout << "found card:" << endl << *cards[0];
} else {
cout << "found cards:" << endl;
for (PokemonCard* card : cards)
- cout << *card << endl;
+ cout << card->short_identifier() << endl;
}
}
return EXIT_SUCCESS;