{"id":20499195,"url":"https://github.com/mohdnehalkhan/cpp-programs","last_synced_at":"2025-07-28T14:09:04.819Z","repository":{"id":197138785,"uuid":"697128219","full_name":"MOHDNEHALKHAN/CPP-PROGRAMS","owner":"MOHDNEHALKHAN","description":"This Repository contains all basic program's of C++ Object Oriented Programming language for a beginner.","archived":false,"fork":false,"pushed_at":"2023-11-29T07:03:14.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T19:28:00.789Z","etag":null,"topics":["cpp","dsa","object-oriented-programming"],"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/MOHDNEHALKHAN.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-09-27T05:44:14.000Z","updated_at":"2023-11-22T09:42:09.000Z","dependencies_parsed_at":"2025-01-16T06:44:15.580Z","dependency_job_id":"d711529f-bc7a-4305-9fcd-972705d1f246","html_url":"https://github.com/MOHDNEHALKHAN/CPP-PROGRAMS","commit_stats":null,"previous_names":["mohdnehalkhan/cpp-programs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MOHDNEHALKHAN/CPP-PROGRAMS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MOHDNEHALKHAN%2FCPP-PROGRAMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MOHDNEHALKHAN%2FCPP-PROGRAMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MOHDNEHALKHAN%2FCPP-PROGRAMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MOHDNEHALKHAN%2FCPP-PROGRAMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MOHDNEHALKHAN","download_url":"https://codeload.github.com/MOHDNEHALKHAN/CPP-PROGRAMS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MOHDNEHALKHAN%2FCPP-PROGRAMS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267527835,"owners_count":24102019,"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-07-28T02:00:09.689Z","response_time":68,"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","dsa","object-oriented-programming"],"created_at":"2024-11-15T18:16:46.397Z","updated_at":"2025-07-28T14:09:04.773Z","avatar_url":"https://github.com/MOHDNEHALKHAN.png","language":"C++","readme":"# Fork and Clone the Repository\n\n1. Go to the GitHub repository you want to fork.\n2. Click the \"Fork\" button in the upper right-hand corner of the repository page.\n3. Select your username or organization where you want to fork the repository. This creates a copy of the repository in your GitHub account.\n4. Open your terminal (Command Prompt on Windows, Terminal on macOS and Linux).\n5. Use this in your terminal\n   ```sh\n    git clone https://github.com/\u003cyour-username\u003e/\u003crepository-name\u003e.git\n    ```\n\n# Running C++ Programs in Visual Studio Code\n\nThis README provides a step-by-step guide on how to execute and run C++ programs within Visual Studio Code using the \"C++-program\" repository.\n\n## Prerequisites\n\nBefore you begin, make sure you have the following installed:\n\n1. **Visual Studio Code**: If you haven't already, download and install Visual Studio Code from the [official website](https://code.visualstudio.com/).\n\n2. **C/C++ Extension**: Install the \"C/C++\" extension for Visual Studio Code. Open VS Code, go to the Extensions view by clicking on the square icon in the sidebar or pressing `Ctrl+Shift+X`, and search for \"C/C++\". Install the one provided by Microsoft.\n\n3. **C++ Compiler**: You need a C++ compiler to build and run your C++ programs. If you don't have it installed, you can follow instructions here: [Install a C++ Compiler on Windows, macOS, and Linux](https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html).\n\n## Getting Started\n\n1. **Clone the Repository**: Start by cloning the \"C++-program\" repository to your local machine using either the HTTPS or SSH link provided on the repository page.\n\n    ```sh\n    git clone \u003crepository_url\u003e\n    ```\n\n2. **Open the Repository in VS Code**: Open Visual Studio Code, and from the menu, select `File \u003e Open Folder...` Navigate to the directory where you cloned the repository and select the folder.\n\n3. **Create or Open a C++ File**: Inside the repository folder, you can either create a new C++ file (e.g., `my_program.cpp`) or open an existing one.\n\n4. **Write Your C++ Code**: Write your C++ program in the opened file. For example:\n\n    ```cpp\n    #include \u003ciostream\u003e\n\n    int main() {\n        std::cout \u003c\u003c \"Hello, World!\" \u003c\u003c std::endl;\n        return 0;\n    }\n    ```\n\n## Compiling and Running\n\n1. **Compile the C++ Program**: Open a terminal in Visual Studio Code by going to `Terminal \u003e New Terminal`. In the terminal, navigate to the directory containing your C++ file and use the following command to compile it:\n\n    ```sh\n    g++ my_program.cpp -o my_program\n    ```\n\n2. **Run the Executable**: After successful compilation, run your program by typing the following command in the terminal:\n\n    ```sh\n    ./my_program\n    ```\n\n    You should see the output of your program in the terminal.\n\n## Debugging (Optional)\n\nVisual Studio Code also supports debugging C++ programs. To set breakpoints, inspect variables, and step through your code, follow these steps:\n\n1. Set a breakpoint by clicking in the gutter next to the line numbers.\n\n2. Press `F5` or go to `Run \u003e Start Debugging` to launch the debugger.\n\n3. Use the debugging controls in the top menu bar to step through your code and inspect variables.\n\n## Conclusion\n\nYou have successfully set up and run C++ programs in Visual Studio Code using the \"C++-program\" repository. Feel free to explore more advanced features and optimize your development process as you become more familiar with both C++ programming and Visual Studio Code.\n\nHappy coding!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohdnehalkhan%2Fcpp-programs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohdnehalkhan%2Fcpp-programs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohdnehalkhan%2Fcpp-programs/lists"}