{"id":20322892,"url":"https://github.com/naemazam/to-do-cpp","last_synced_at":"2025-09-22T23:31:31.195Z","repository":{"id":243415735,"uuid":"812148130","full_name":"naemazam/to-do-cpp","owner":"naemazam","description":"This is a simple To-Do List application written in C++. The application allows users to create, manipulate, and save a list of tasks. The tasks are stored in a list.txt file, enabling persistence across sessions.","archived":false,"fork":false,"pushed_at":"2024-06-08T05:06:56.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T06:31:51.651Z","etag":null,"topics":["cpp","naemazam","to-do","to-do-app","to-do-cpp","to-do-list"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naemazam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-08T04:55:57.000Z","updated_at":"2024-09-14T22:50:38.000Z","dependencies_parsed_at":"2024-06-08T18:45:26.396Z","dependency_job_id":"4b3004ad-7079-4476-8894-ced41dd24aa0","html_url":"https://github.com/naemazam/to-do-cpp","commit_stats":null,"previous_names":["naemazam/to-do-cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/naemazam/to-do-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naemazam%2Fto-do-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naemazam%2Fto-do-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naemazam%2Fto-do-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naemazam%2Fto-do-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naemazam","download_url":"https://codeload.github.com/naemazam/to-do-cpp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naemazam%2Fto-do-cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276489642,"owners_count":25651583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","naemazam","to-do","to-do-app","to-do-cpp","to-do-list"],"created_at":"2024-11-14T19:25:31.557Z","updated_at":"2025-09-22T23:31:30.953Z","avatar_url":"https://github.com/naemazam.png","language":"C++","readme":"# To-Do List App in C++\n\n## Overview\nThis is a simple To-Do List application written in C++. The application allows users to create, manipulate, and save a list of tasks. The tasks are stored in a `list.txt` file, enabling persistence across sessions.\n\n## Classes\n\n### TodoList\nThis class represents the entire to-do list and contains methods to manipulate the list of items.\n\n#### Methods\n- **addItem(const Item \u0026item)**: Adds a new item to the list.\n- **removeItem(int index)**: Removes an item from the list based on its index.\n- **displayItems() const**: Displays all the items in the list.\n- **saveToFile() const**: Saves the list of items to `list.txt`.\n- **loadFromFile()**: Loads the list of items from `list.txt`.\n\n### Item\nThis class represents a specific task in the to-do list.\n\n#### Attributes\n- **std::string description**: A description of the task.\n- **bool completed**: A flag indicating whether the task is completed.\n\n## Libraries Used\n\n### iostream\nUsed for input and output from the user.\n\n### iomanip\nUsed for formatting the display of the list items.\n\n### string\nUsed for managing and formatting user input.\n\n### fstream\nUsed for reading from and writing to the `list.txt` file.\n\n### stdio\nUsed for file manipulation, specifically for removing the `list.txt` file.\n\n## Getting Started\n\n### Prerequisites\n- A C++ compiler (e.g., g++, clang++)\n- A text editor or IDE (e.g., VSCode, CLion)\n\n### Installation\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/naemazam/to-do-cpp.git\n    cd to-do-cpp\n    ```\n2. Compile the application:\n    ```sh\n    g++ main.cpp -o to-do-cpp\n    ```\n\n### Usage\nRun the application:\n```sh\n./to-do-cpp\n```\n\n### Example\nUpon running the application, you will be presented with a menu to add, remove, display tasks, save the list to a file, or load the list from a file.\n\n## File Structure\n- **main.cpp**: The main file containing the entry point of the application.\n- **TodoList.h**: Header file for the `TodoList` class.\n- **Item.h**: Header file for the `Item` class.\n- **list.txt**: File used to store the tasks persistently.\n- **README.md**: This README file.\n\n## Future Enhancements\n- Add a feature to edit existing tasks.\n- Implement a search function to find tasks by keywords.\n- Add a graphical user interface (GUI).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaemazam%2Fto-do-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaemazam%2Fto-do-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaemazam%2Fto-do-cpp/lists"}