{"id":24030483,"url":"https://github.com/zreechxnn/calculator-sdl2","last_synced_at":"2025-04-19T11:41:35.028Z","repository":{"id":254666966,"uuid":"847210582","full_name":"Zreechxnn/calculator-SDL2","owner":"Zreechxnn","description":" SDL2 Calculator: A simple calculator built with C++ and SDL2, supporting basic arithmetic, advanced math functions, and trigonometry. Features a user-friendly graphical interface.","archived":false,"fork":false,"pushed_at":"2025-01-19T10:40:13.000Z","size":111,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T07:22:43.768Z","etag":null,"topics":["calculator","calculator-application","conio","cpp","cross-platform","graph","gui","math","math-operations","opensource","sdl2","sdl2-library","sdl2-ttf","simple-app","software-development","stdlib","trigonometry"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zreechxnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-25T06:55:12.000Z","updated_at":"2025-01-19T10:40:15.000Z","dependencies_parsed_at":"2024-08-25T07:54:38.152Z","dependency_job_id":"25889501-d746-4a8c-8e3b-c068d47e7af3","html_url":"https://github.com/Zreechxnn/calculator-SDL2","commit_stats":null,"previous_names":["zreechxnn/calculator-sdl2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zreechxnn%2Fcalculator-SDL2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zreechxnn%2Fcalculator-SDL2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zreechxnn%2Fcalculator-SDL2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zreechxnn%2Fcalculator-SDL2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zreechxnn","download_url":"https://codeload.github.com/Zreechxnn/calculator-SDL2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249685292,"owners_count":21310577,"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","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":["calculator","calculator-application","conio","cpp","cross-platform","graph","gui","math","math-operations","opensource","sdl2","sdl2-library","sdl2-ttf","simple-app","software-development","stdlib","trigonometry"],"created_at":"2025-01-08T17:44:18.391Z","updated_at":"2025-04-19T11:41:35.022Z","avatar_url":"https://github.com/Zreechxnn.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# calculator-SDL2\n# SDL2 Calculator\n\n\n\u003cdetails\u003e\n  \u003csummary\u003edetail\u003c/summary\u003e\n  \n A simple calculator application developed using SDL2 and SDL_ttf. This calculator includes various mathematical functions and operations, such as square root, pi, exponentiation, trigonometric functions, and basic arithmetic operations.\n![image](https://e.top4top.io/p_31596566j1.png)\n\n\u003c/details\u003e\n  \n\u003cdetails\u003e\n  \u003csummary\u003eFeatures\u003c/summary\u003e\n\n- **Basic Arithmetic Operations**: Addition, subtraction, multiplication, and division.\n- **Mathematical Functions**: Square root, exponentiation, factorial, and more.\n- **Trigonometric Functions**: Sine, cosine, and tangent.\n- **Advanced Features**: Decimal points, parentheses, percentage calculations, and more.\n\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n  \u003csummary\u003eGetting Started\u003c/summary\u003e\n  To build and run this project, you need to have the following installed:\n\n- SDL2\n- SDL2_ttf\n\nYou can install these libraries using your package manager or from the official SDL website.\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eInstalation\u003c/summary\u003e\n\n  1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/Zreechxnn/calculator-SDL2.git\n   cd calculator-SDL2\n   ```\n\n2. **Install dependencies**:\n\n   - On Ubuntu/Debian-based systems:\n     ```bash\n     sudo apt-get install libsdl2-dev libsdl2-ttf-dev\n     ```\n   - On Fedora-based systems:\n     ```bash\n     sudo dnf install SDL2-devel SDL2_ttf-devel\n     ```\n\n3. **Build the project**:\n   ```bash\n   gcc -o calculator main.cpp -lSDL2 -lSDL2_ttf -lm\n   ```\n\n4. **Run the application**:\n   ```bash\n   ./calculator\n   ```\n\n\u003c/details\u003e\n\n## Usage\n\n- **Basic Operations**: Click the buttons to input numbers and operators. Click the `=` button to calculate the result.\n- **Advanced Functions**: Use buttons like `sqrt`, `pi`, `^`, `!`, `deg`, `sin`, `cos`, `tan`, and `AD` for advanced calculations (coming soon) .\n- **Clear and Delete**: Click `D` to delete the last character and `0` to reset the input.\n\n## Troubleshooting\n\n- **Font Issues**: Ensure 'lonely.ttf` is present in the same directory as the executable or adjust the path in the source code.\n- **Library Errors**: Verify that SDL2 and SDL2_ttf libraries are installed and properly linked during compilation.\n\n## Contributing\n\nFeel free to open issues or submit pull requests if you find bugs or have suggestions for improvements.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [SDL2](https://www.libsdl.org/) - Simple DirectMedia Layer\n- [SDL2_ttf](https://www.libsdl.org/projects/SDL_ttf/) - SDL2 font rendering library\n\n\u003cdetails\u003e\n  \u003csummary\u003e⚠️Disclaimer\u003c/summary\u003e\n  \nThe code in this repository is intended **only for developers** with a basic understanding of programming. Please use it responsibly and for development purposes only.\n\n- **Not recommended for direct use in production environments without thorough testing.**  \n- No guarantees are provided regarding the absence of bugs or errors.  \n- The author is not liable for any damages or issues caused \n\n\u003c/details\u003e \n\n\u003cp align=\"center\"\u003e©️ 2024 Rechan Dinata\u003c/p\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzreechxnn%2Fcalculator-sdl2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzreechxnn%2Fcalculator-sdl2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzreechxnn%2Fcalculator-sdl2/lists"}