C++ Text Editor