I'm having problems initializing this class:
class Player{
///
std::istream ∈
///
};
Trying like this:
Player::Player():in(cin){
///
}
Can anyone point me in the right direction of how to accomplish this? Also, after initialization, can I change the reference by saying something like
stringstream ss("test");
Player p;
p.in = ss;
thanks in advance