#include #include #include #include using namespace std; enum PokerHAND{ FULL_HOUSE=0, THREE_CARD=1, TWO_PAIR=2, ONE_PAIR=3, NO_HAND=4 }; // input sample // 5 6 5 6 5 int judgePoker(){ std::string str; std::string buf; std::vector deck; std::cout << "Please input cards"<< std::endl; getline(cin, str); std::cout << "Input cards: "<< str <::const_iterator i = deck.begin(); i != deck.end(); ++i) { #ifdef DEBUG std::cout << *i << ","; #endif cnt[*i-1]++; } #ifdef DEBUG std::cout << std::endl; #endif if(deck.size() != 5){ return -1; } for (int j = 0; j<13 ;j++) { #ifdef DEBUG std::cout <