{"id":20697243,"url":"https://github.com/tsnsoft/cpp_quadraticequation","last_synced_at":"2026-04-18T20:01:59.973Z","repository":{"id":119295854,"uuid":"221599735","full_name":"tsnsoft/CPP_QuadraticEquation","owner":"tsnsoft","description":"Расширенный пример решения квадратного уравнения на C++ в NetBeans","archived":false,"fork":false,"pushed_at":"2020-01-30T10:40:03.000Z","size":137,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-11T02:49:49.307Z","etag":null,"topics":["cpp","example","netbeans","windows"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsnsoft.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":"2019-11-14T03:03:28.000Z","updated_at":"2024-09-20T11:17:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4b8ce8e-898d-498e-a4a0-ecc63e251c5d","html_url":"https://github.com/tsnsoft/CPP_QuadraticEquation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tsnsoft/CPP_QuadraticEquation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCPP_QuadraticEquation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCPP_QuadraticEquation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCPP_QuadraticEquation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCPP_QuadraticEquation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsnsoft","download_url":"https://codeload.github.com/tsnsoft/CPP_QuadraticEquation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCPP_QuadraticEquation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","example","netbeans","windows"],"created_at":"2024-11-17T00:17:16.794Z","updated_at":"2026-04-18T20:01:59.861Z","avatar_url":"https://github.com/tsnsoft.png","language":"Makefile","readme":"# CPP_QuadraticEquation\nРасширенный пример решения квадратного уравнения на C++ в NetBeans\n\n![screenshot](screenshot1.png)\n\n![screenshot](screenshot2.png)\n\n# Код программы:\n\n```\n/*\n * Пример решения квадратного уравнения\n */\n\n#include \u003ciostream\u003e\n#include \u003ccmath\u003e\n\nusing namespace std;\n\nint main() {\n    double a, b, c, x1, x2;\n    string _a, _b, _c;\n    label1: // Метка с именем label1\n    try { // Защищенный блок\n        cout \u003c\u003c \"Введите значение a: \"; cin \u003e\u003e _a;  a = stod(_a);\n        cout \u003c\u003c \"Введите значение b: \"; cin \u003e\u003e _b;  b = stod(_b);\n        cout \u003c\u003c \"Введите значение c: \"; cin \u003e\u003e _c;  c = stod(_c);\n        if ((b * b - 4 * a * c) \u003e= 0) {\n            x1 = (-b + sqrt(b * b - 4 * a * c)) / (2 * a);\n            x2 = (-b - sqrt(b * b - 4 * a * c)) / (2 * a);\n            if (isnan(x1) || isnan(x2) || isinf(x1) || isinf(x2)) {\n                throw logic_error(\"Нет решения: корни не вещественные\"); // Генерируем ошибку\n            }\n            cout \u003c\u003c \"Первый корень = \" \u003c\u003c x1 \u003c\u003c endl;\n            cout \u003c\u003c \"Второй корень = \" \u003c\u003c x2 \u003c\u003c endl;\n        } else {\n            throw runtime_error(\"Нет решения: дискриминант меньше 0\"); // Генерируем ошибку\n        }\n    } catch (exception\u0026 e) { // Обработчик основных ошибок\n        string err = e.what();\n        if (err == \"stod\") {\n            cerr \u003c\u003c endl \u003c\u003c \"Ошибка входных даных!\\n\" \u003c\u003c endl;\n            goto label1; // Переход на метку label1\n        } else {\n            cerr \u003c\u003c endl \u003c\u003c \"Ошибка: \" \u003c\u003c e.what() \u003c\u003c endl;\n        }\n    } catch (...) { // Обработчик остальных ошибок\n        cerr \u003c\u003c endl \u003c\u003c \"Ошибка вычисления\" \u003c\u003c endl;\n        return -1; // Выход из программы с фактом ошибки\n    }\n    return 0; // Нормальный выход из программы\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fcpp_quadraticequation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsnsoft%2Fcpp_quadraticequation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fcpp_quadraticequation/lists"}