geekbrains_oop_cpp/lesson_6/exercise_5.hpp

21 lines
446 B
C++
Raw Normal View History

2021-07-08 14:54:37 +00:00
#ifndef EXERCISE_5_HPP_
#define EXERCISE_5_HPP_
#include "Blackjack.hpp"
ostream& operator<<(ostream& os, const Card& aCard)
{
const string RANKS[] = {"0", "A", "2", "3", "4", "5", "6", "7", "8", "9",
"10", "J", "Q", "K"};
const string SUITS[] = {"c", "d", "h", "s"};
if (aCard.m_IsFaceUp)
os << RANKS[aCard.m_Rank] << SUITS[aCard.m_Suit];
else
os << "XX";
return os;
}
#endif