So, I'm trying out a project on my own because I have no real clue how to do anything complex or useful in C++ (applications for example). This project calls for creating a simple console text editor with basic functionality (buffer, command set, redisplay). The problem is that I don't understand the buffer step. How do you decide where the gap starts in a gap buffer? I have searched online for ages but can't find any definitive source on how the algorithm for the data structure actually works.
I guess what I'm trying to say is that this is my frist crack at trying to develop a rudimentary application and I'm getting stuck at the very first step; I really don't understand how I can use C++ to develop more involved applications.