// ik-9/15/2011
// Railroad crossing - train that moves.
// Part of the solution to the problem described by
// http://www.c-jump.com/CIS62/Handout/RRxing.jpg

// TODO:
// *** NOTE: no header guards are present in this file!

const int END_OF_TRACK = 20;

class Train {
public:
    // member variables
    int m_location;

    // class operations
    void move()
    {
        //m_location = m_location + 1;
        ++m_location;
        std::cout << "moved to: " << m_location << '\n'; //DEBUG
    }
    int location()
    {
        //std::cout << "train location: " << m_location << '\n'; //DEBUG
        return m_location;
    }
};//class Train