Menu

General Programming

Use Variadic Macro for Debug Printing
In Debug-Printing, it is required to provide information useful enough so that problems can be diagnosed easily. If the printed messages include source [...]
LRU Cache-Like Array-Based Linked List
In some circumstances, we may need to implement a limited-size list that works like LRU cache. Most implementations are done by recording the latest time [...]
Create Extra Consoles for Your Program. Control Your Extra Console with Escaping.
Introduction You might want an extra console for your program. However, you may realize that you can only have one console per process. Functions like [...]