I wrote this
but i can't handle the entered strings.
how could i control it that if user pressed enter, it goes to next line?Code:#define LINE 60 #define COL 100 class Editor { private: char buff[LINE][COL]; public: friend istream& operator >> (istream&, Editor&); friend ostream& operator << (ostream&, const Editor&); }; istream& operator >> (istream& input, Editor& str) { for (int i = 0; i < LINE; i++) for (int j = 0; j < COL; j++) input >> str.buff[i][j]; return input; } ostream& operator << (ostream& output, const Editor& str) { for (int i = 0; i < LINE; i++) for (int j = 0; j < COL; j++) output << str.buff[i][j]; return output; }




