And this one if You don't mind:
std::istream & operator>>(std::istream &is, machine &m) {
m.state = "0";
is >> m.position; m.position--;
return is >> m.tape;
std::istream & operator>>(std::istream &is, machine &m)
Function takes an istream ref and a machine ref as input parameters, and returns a ref to an istream
m.state = "0";
Take a guess
is >> m.position;
Read in value from stream. Store it in m.position
m.position--;
Take a guess
is >> m.tape;
Read in value from stream. Store it in m.tape