DesignPattern/21.StatePattern/2.Code/main.cpp

19 lines
257 B
C++

#include "GameAccount.h"
#include "Level.h"
int main()
{
GameAccount *jungle = new GameAccount("Jungle");
for (int i = 0; i < 5; i++){
printf("%d \n", i + 1);
jungle->playCard();
}
printf("\n\n");
system("pause");
delete jungle;
return 0;
}