{"id":19861020,"url":"https://github.com/muneeb1030/truth-table-generator-data-structures-cpp","last_synced_at":"2026-06-29T20:31:56.778Z","repository":{"id":181613186,"uuid":"666124017","full_name":"Muneeb1030/Truth-Table-Generator-Data-Structures-Cpp","owner":"Muneeb1030","description":"The Truth Table Generator is a C++ program that evaluates logical expressions with NOT, AND, and OR operators. It uses object-oriented programming and data structures to generate truth tables, handling bracketed expressions and converting them to postfix notation for accurate evaluation.","archived":false,"fork":false,"pushed_at":"2023-07-16T13:02:27.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T05:48:33.689Z","etag":null,"topics":["cplusplus","cpp","postfix-evaluation","stack","truth-table","truth-table-generator"],"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/Muneeb1030.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}},"created_at":"2023-07-13T19:13:04.000Z","updated_at":"2024-07-16T15:46:23.000Z","dependencies_parsed_at":"2023-07-16T14:05:01.824Z","dependency_job_id":null,"html_url":"https://github.com/Muneeb1030/Truth-Table-Generator-Data-Structures-Cpp","commit_stats":null,"previous_names":["muneeb1030/truth-table-generator-data-structures-cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Muneeb1030/Truth-Table-Generator-Data-Structures-Cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muneeb1030%2FTruth-Table-Generator-Data-Structures-Cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muneeb1030%2FTruth-Table-Generator-Data-Structures-Cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muneeb1030%2FTruth-Table-Generator-Data-Structures-Cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muneeb1030%2FTruth-Table-Generator-Data-Structures-Cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Muneeb1030","download_url":"https://codeload.github.com/Muneeb1030/Truth-Table-Generator-Data-Structures-Cpp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muneeb1030%2FTruth-Table-Generator-Data-Structures-Cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34942665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"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":["cplusplus","cpp","postfix-evaluation","stack","truth-table","truth-table-generator"],"created_at":"2024-11-12T15:07:50.960Z","updated_at":"2026-06-29T20:31:56.754Z","avatar_url":"https://github.com/Muneeb1030.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Truth Table Generator\n\n## Description\n\nThe Truth Table Generator is a C++ program that utilizes object-oriented programming and data structures to generate a truth table for a provided logical expression. The program supports the following logical operators: NOT, AND, and OR. It also includes the ability to resolve brackets using a stack, resulting in a postfix expression.\n\n## Features\n\n- Logical expression evaluation: The program can evaluate logical expressions containing NOT, AND, and OR operators.\n- Bracket resolution: The program can handle expressions with brackets by resolving them using a stack and converting the expression to postfix notation.\n- Truth table generation: Given a logical expression, the program generates a truth table with all possible combinations of inputs and the corresponding output values.\n- User-friendly interface: The program provides a user-friendly interface to input the logical expression and view the generated truth table.\n\n## Getting Started\n\nTo use the Truth Table Generator, follow these steps:\n\n1. Clone the repository or download the source code files.\n2. Open the terminal and navigate to the project directory.\n3. Compile the source code using a C++ compiler:\n```sh\ng++ truth_table_generator.cpp -o truth_table_generator\n```\n4. Run the program:\n```sh\n./truth_table_generator\n```\n\n5. Follow the instructions provided by the program to enter the logical expression.\n6. View the generated truth table.\n\n## Requirements\n\nThe Truth Table Generator requires a C++ compiler that supports C++11 or higher.\n\n## Usage\n\n1. Input the logical expression following the provided syntax guidelines:\n- Use '~' for NOT operator.\n- Use '^' for AND operator.\n- Use '|' for OR operator.\n- Enclose sub-expressions in brackets '(' and ')'.\n- Use uppercase letters for variables.\n- Separate each expression or variable with spaces.\nExample: `(~A ^ B) | (C ^ D)`\n2. Press Enter to generate the truth table.\n3. The program will display the truth table showing all possible combinations of inputs and the corresponding output values.\n\n## Example\n\n### Input\n\nEnter the logical expression: `(~A ^ B) | (C ^ D)`\n\n### Output\n\n| A | B | C | D | Result |\n|---|---|---|---|--------|\n| 0 | 0 | 0 | 0 |   0    |\n| 0 | 0 | 0 | 1 |   0    |\n| 0 | 0 | 1 | 0 |   0    |\n| 0 | 0 | 1 | 1 |   0    |\n| 0 | 1 | 0 | 0 |   1    |\n| 0 | 1 | 0 | 1 |   1    |\n| 0 | 1 | 1 | 0 |   0    |\n| 0 | 1 | 1 | 1 |   1    |\n| 1 | 0 | 0 | 0 |   0    |\n| 1 | 0 | 0 | 1 |   0    |\n| 1 | 0 | 1 | 0 |   0    |\n| 1 | 0 | 1 | 1 |   0    |\n| 1 | 1 | 0 | 0 |   1    |\n| 1 | 1 | 0 | 1 |   1    |\n| 1 | 1 | 1 | 0 |   1    |\n| 1 | 1 | 1 | 1 |   1    |\n\n## Contributing\n\nContributions to the Truth Table Generator project are welcome! If you have any ideas, bug fixes, or enhancements, please open an issue or submit a pull request on the project's GitHub repository.\n\nWhen contributing, please follow the code style and structure of the existing project and ensure that your changes are well-documented.\n\n## License\n\nThe Truth Table Generator is licensed under the [MIT License](LICENSE). See the `LICENSE` file for more information.\n\n## Contact\n\nIf you have any questions or suggestions regarding the Truth Table Generator, please contact [m.muneeb.ur.rehman.2000@gmail.com](mailto:m.muneeb.ur.rehman.2000@gmail.com). I appreciate your feedback!\n\n---\n\nThank you for using the Truth Table Generator! We hope it helps you generate truth tables efficiently for your logical expressions. Happy analyzing!\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneeb1030%2Ftruth-table-generator-data-structures-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuneeb1030%2Ftruth-table-generator-data-structures-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneeb1030%2Ftruth-table-generator-data-structures-cpp/lists"}