//string example //http://www.yolinux.com/TUTORIALS/LinuxTutorialC++StringClass.html /* * * Is a virtual tape * * @author http://bumble.sf.net */ // good examples // http://www.josuttis.com/libbook/i18n/loc1.cpp.html #if !defined (_TAPE_H) #define _TAPE_H_ #include #include #include #include using namespace std; class Tape { private: //-------------------------------------------- vector array; //-------------------------------------------- int pointer; public: //-------------------------------------------- Tape(); //-------------------------------------------- string toString(); //-------------------------------------------- string print(); //-------------------------------------------- void put(string sNewElement); //-------------------------------------------- string get(); //-------------------------------------------- void incrementPointer(); //-------------------------------------------- void decrementPointer(); }; #endif