My g++ compiler is telling me that said printTest() is not part of the class. I have presented it in header class and implemented it in .cpp class but still keep getting the error. Any help would be awesome.
Compile and compile error -
blackjack > g++ -Wextra -pedantic -std=c++11 Deck.h Deck.cpp test.cpp ;
test.cpp: In function ‘int main()’:
test.cpp:6:6: error: request for member ‘printTest’ in ‘test’, which is of non-class type ‘Deck()’
test.printTest();
That was it, thank you very much. I have another class that works the same way but the constructor takes params so - Card card(1,3) worked just fine. I would of never thought this to be the problem. I have been going back and forth analyzing everything for the last hour. Thanks again.