how about something like this, put into a function:
string card;
cin >> card;
rank = card[0];
suit = card[1];
Then do whatever you want with it, no need to overload the operator.
Type: Posts; User: bobknows
how about something like this, put into a function:
string card;
cin >> card;
rank = card[0];
suit = card[1];
Then do whatever you want with it, no need to overload the operator.