I want to implent dos like arrow keys for browsing between the previously typed text. What is a good way of doing this, I was thinking of storing them in pointers,
and when counter is > 16, free and re-allocate 0, and start there again. This should keep 17 commands in memory.Code:char *p;
Are there any good algorithms for this? Or can someone show an example of how this could be done?
- OS: MS Windows XP
Compiler: MS VC++ 6.0