{"id":21541904,"url":"https://github.com/seyed0123/n-segment","last_synced_at":"2025-10-16T06:08:09.025Z","repository":{"id":157556834,"uuid":"631175878","full_name":"seyed0123/N-Segment","owner":"seyed0123","description":"N-segment display text mode","archived":false,"fork":false,"pushed_at":"2024-06-07T07:06:43.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T08:31:42.641Z","etag":null,"topics":["cpp","segment-display"],"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/seyed0123.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":"2023-04-22T07:08:47.000Z","updated_at":"2024-06-07T07:08:47.000Z","dependencies_parsed_at":"2024-06-07T08:27:52.196Z","dependency_job_id":null,"html_url":"https://github.com/seyed0123/N-Segment","commit_stats":null,"previous_names":["seyed0123/7-segment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seyed0123%2FN-Segment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seyed0123%2FN-Segment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seyed0123%2FN-Segment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seyed0123%2FN-Segment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seyed0123","download_url":"https://codeload.github.com/seyed0123/N-Segment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244124179,"owners_count":20401683,"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":["cpp","segment-display"],"created_at":"2024-11-24T05:07:58.570Z","updated_at":"2025-10-16T06:08:03.976Z","avatar_url":"https://github.com/seyed0123.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# N-Segment Display\nThis code provides a function sevenSegment(string n, int b) that takes two arguments, a string n representing a number to be displayed on a 7-segment display and an integer b representing the width of each segment. The function outputs the number as a 7-segment display, using the specified width for each segment.\n\n## Requirements\nThe code requires a C++ compiler.\n\n## Usage\nTo use the sevenSegment function, include the `iostream` and `string` libraries and call the function with a string representing the number to be displayed and an integer.\n## Functionality\nThe sevenSegment function uses nested loops to iterate over the rows and columns of the display. For each position in the display, the function checks which segment(s) should be drawn for the current digit, and outputs the appropriate character (either a space, a vertical bar, or a horizontal bar) to the console.\n\nThe function can display the digits 0-9 and the letters A-Z, as well as a few other characters. It does not handle negative numbers or non-numeric input.\n### here is a sample for this code       \nprint \"hello world\"\n\nSeven Segment\n```\n            ━ ━ ━ ━\n ┃         ┃         ┃         ┃                             ┃       ┃                     ┃                 ┃\n ┃         ┃         ┃         ┃                             ┃       ┃                     ┃                 ┃\n ┃         ┃         ┃         ┃                             ┃       ┃                     ┃                 ┃\n  ━ ━ ━ ━   ━ ━ ━ ━                       ━ ━ ━ ━             ━ ━ ━ ━   ━ ━ ━ ━   ━ ━ ━ ━             ━ ━ ━ ━ \n ┃       ┃ ┃         ┃         ┃         ┃       ┃                     ┃       ┃ ┃         ┃         ┃       ┃\n ┃       ┃ ┃         ┃         ┃         ┃       ┃                     ┃       ┃ ┃         ┃         ┃       ┃\n ┃       ┃ ┃         ┃         ┃         ┃       ┃                     ┃       ┃ ┃         ┃         ┃       ┃\n            ━ ━ ━ ━   ━ ━ ━ ━   ━ ━ ━ ━   ━ ━ ━ ━             ━ ━ ━ ━   ━ ━ ━ ━             ━ ━ ━ ━   ━ ━ ━ ━ \n```\n\nTwelve Segment:\n```\n             ━ ━ ━ ━                          ━ ━ ━ ━                          ━ ━ ━ ━    ━ ━ ━ ━               ━ ━ ━ ━  \n ┃       ┃  ┃          ┃          ┃          ┃       ┃             ┃       ┃  ┃       ┃  ┃       ┃  ┃              ┃   ┃ \n ┃       ┃  ┃          ┃          ┃          ┃       ┃             ┃       ┃  ┃       ┃  ┃       ┃  ┃              ┃   ┃ \n ┃       ┃  ┃          ┃          ┃          ┃       ┃             ┃       ┃  ┃       ┃  ┃       ┃  ┃              ┃   ┃ \n  ━ ━ ━ ━    ━ ━                                                                          ━ ━ ━ ━\n ┃       ┃  ┃          ┃          ┃          ┃       ┃             ┃   ┃   ┃  ┃       ┃  ┃   ┃      ┃              ┃   ┃ \n ┃       ┃  ┃          ┃          ┃          ┃       ┃             ┃   ┃   ┃  ┃       ┃  ┃   ┃      ┃              ┃   ┃        \n ┃       ┃  ┃          ┃          ┃          ┃       ┃             ┃   ┃   ┃  ┃       ┃  ┃   ┃      ┃              ┃   ┃ \n             ━ ━ ━ ━    ━ ━ ━ ━    ━ ━ ━ ━    ━ ━ ━ ━               ━ ━ ━ ━    ━ ━ ━ ━        ━ ━    ━ ━ ━ ━    ━ ━ ━ ━\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseyed0123%2Fn-segment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseyed0123%2Fn-segment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseyed0123%2Fn-segment/lists"}