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

16 lines
243 B
C++
Raw Normal View History

2019-11-09 02:41:43 +00:00
#include "GameAccount.h"
#include "Level.h"
int main()
{
GameAccount *jungle = new GameAccount("Jungle");
for (int i = 0; i < 5; i++){
printf("<EFBFBD><EFBFBD>%d<>֣<EFBFBD>\n", i + 1);
jungle->playCard();
}
printf("\n\n");
system("pause");
return 0;
}