Salman's Expense Tracker is a simple yet effective C++ program designed to help you track your daily expenses. With features like adding expenses, viewing by date, and sorting, this program makes managing your finances intuitive and efficient.
-
Add Expenses:
- Enter item names and the amount spent.
- Automatically records the date and time for each entry.
-
Display All Records:
- View a detailed table of all expenses, including the item name, amount, and date.
-
Filter by Date:
- Retrieve expenses for a specific date in the format
YYYY-MM-DD
.
- Retrieve expenses for a specific date in the format
-
Sorted Records:
- View all entries in an ordered format for a clear financial overview.
-
User-Friendly Menu:
- Easy-to-navigate menu with clear options.
- Menu Options:
- Select options from the menu to add, view, or filter expenses.
- Validation:
- Ensures that item names don't contain numbers.
- Date Handling:
- Captures the current date and time automatically for entries.
- Custom Date Search:
- Search for expenses by entering a date in the format
YYYY-MM-DD
.
- Search for expenses by entering a date in the format
-
C++ Compiler:
The program requires a modern C++ compiler that supportsstd::map
,tm
, andlocaltime
.
(e.g., GCC 5+, Clang 3.8+, or Visual Studio 2017+) -
Date Format:
Enter dates asYYYY-MM-DD
for proper filtering.
-
Compiler Compatibility:
- Some compilers like Dev C++ may not fully support the range-based
for
loops used in the program. Use a modern IDE or an online compiler.
- Some compilers like Dev C++ may not fully support the range-based
-
Error Handling:
- Inputs are validated to ensure proper functioning, like rejecting item names with numbers.
- Exporting expenses to a CSV file for better record-keeping.
- Adding categories to organize expenses.
- Enhanced date filtering options.
Feel free to suggest improvements or report issues in the repository's "Issues" section!