This program uses ncurses to create a Text User Interface (TUI) inside the terminal where users can store data.
- The
StoreData
feature uses a structure for data storage. - When you enter data, it will store the entered user in a dynamically allocated binary tree.
- The binary tree is sorted with the following rules: nodes on the left go bigger, nodes on the right go smaller.
- The
SearchUser
feature uses a binary tree traversal to search for a specific user. - The traversal technique can be easily changed to infix, prefix, or postfix.
- It uses
strcmp
andagecmp
to find the correct node.
- This program stores notes statically inside the window.
After the program has finished its operation, it will free the binary tree. This program was created for learning purposes to explore the power and techniques of dynamic programming. It's just one of many techniques you can learn from.
Feel free to check out the program and try creating something similar yourself. It's a great way to learn!
To run this program, you need to install the ncurses
library:
sudo apt-get install libncurses5-dev libncursesw5-dev