{"id":21965301,"url":"https://github.com/bytebigboss/cpp-mstr","last_synced_at":"2025-03-22T21:28:47.361Z","repository":{"id":258404063,"uuid":"868631138","full_name":"ByteBigBoss/cpp-mstr","owner":"ByteBigBoss","description":"Hello, C++ World from ByteBigBoss!","archived":false,"fork":false,"pushed_at":"2024-10-16T23:58:51.000Z","size":347,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T01:19:02.918Z","etag":null,"topics":["cpp"],"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/ByteBigBoss.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":"2024-10-06T21:38:02.000Z","updated_at":"2024-10-16T23:58:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9f1582a-a3e1-4067-8571-5ca1f4532576","html_url":"https://github.com/ByteBigBoss/cpp-mstr","commit_stats":null,"previous_names":["bytebigboss/cpp-mstr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteBigBoss%2Fcpp-mstr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteBigBoss%2Fcpp-mstr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteBigBoss%2Fcpp-mstr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByteBigBoss%2Fcpp-mstr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ByteBigBoss","download_url":"https://codeload.github.com/ByteBigBoss/cpp-mstr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245022124,"owners_count":20548484,"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"],"created_at":"2024-11-29T12:38:01.846Z","updated_at":"2025-03-22T21:28:47.336Z","avatar_url":"https://github.com/ByteBigBoss.png","language":"C++","readme":"## C++\n\n**Used For**: System software, game engines, real-time simulations.\n\n**Systems Built With It**: Unreal Engine, Chrome browser, Adobe Systems.\n\n**When to Use**: Performance-critical applications, low-level system access.\n\n**Capabilities**: Object-oriented with manual memory management, templates.\n\n---\n\n##  **Environment Setup in VS Code:**\n\n  \n1.  **Install C++ Compiler:**\n\n - For **Windows**, install **MinGW** (Minimalist GNU for Windows).\n\n - Download from [MinGW](https://www.msys2.org/). [Direct Link](https://github.com/msys2/msys2-installer/releases/download/2024-01-13/msys2-x86_64-20240113.exe)\n\n - Read Documentation. [VS Code Docs](https://code.visualstudio.com/docs/cpp/config-mingw)\n\n - When complete, ensure the **Run MSYS2 now** box is checked and select **Finish**. This will open a MSYS2 terminal window for you.\n - In this terminal, install the MinGW-w64 toolchain by running the following command:\n - `pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain\n`\n - Accept the default number of packages in the `toolchain` group by pressing **Enter**.\n - Enter  `Y`  when prompted whether to proceed with the installation.\n ---\n - For **Mac/Linux**, you can use **GCC** (usually pre-installed on Linux, but on Mac you can install it via Homebrew: `brew install gcc`).\n ---\n2.  **Add the path of your MinGW-w64 `bin` folder to the Windows `PATH` environment variable by using the following steps**\n-  In the Windows search bar, type  **Settings**  to open your Windows Settings.\n-  Search for  **Edit environment variables for your account**.\n-  In your  **User variables**, select the  `Path`  variable and then select  **Edit**.\n-  Select  **New**  and add the MinGW-w64 destination folder you recorded during the installation process to the list. If you used the default settings above, then this will be the path:  `C:\\msys64\\ucrt64\\bin`.\n- Select  **OK**, and then select  **OK**  again in the  **Environment Variables**  window to update the  `PATH`  environment variable. You have to reopen any console windows for the updated  `PATH`  environment variable to be available.\n\n3.  **Install VS Code Extensions:**\n\n- Install the **C/C++ extension** by Microsoft. Go to the **Extensions** panel (on the sidebar) and search for **C/C++**. Install it.\n\n- Install **Code Runner** for quick code execution.\n\n4.  **Configure the Compiler:**\n\n- Open VS Code, go to **Terminal** \u003e **New Terminal**, and type:\n```bash\ng++ --version\n```\nor\n```bash\ngcc --version\n```\nIf installed properly, the terminal should show the GCC version. If not, check if the compiler's path is set correctly.\n\n5. **Confirm compiler pickup by vs code extension `C/C++`**\n- Open Visual Studio Code\n- In the command palatte choose the `C/C++: Select IntelliSense Configuration...`\n- If you see `Use gcc.exe` from dropdown menu, then all set.\n  \n\n###  **Create Your First C++ Project in VS Code:**\n\n1.  **Setting Up a C++ Project in VS Code:**\n\n- Create a folder for your project, then open this folder in VS Code.\n\n- Create a new file: `main.cpp`.  \n\n **Step 1: Write a Simple \"Hello, World!\" Program** in `main.cpp`:\n\n```cpp\n#include \u003ciostream\u003e\nusing namespace std;\n\nint main() {\n\ncout \u003c\u003c \"Hello, World!\" \u003c\u003c endl;\n\nreturn 0;\n\n}\n```\n **Step 2: Compile and Run:**\n\n1.  Open  `main.cpp`  so that it is the active file.\n    \n2.  Press the play button in the top right corner of the editor.\n\n3. Choose **C/C++: g++.exe build and debug active file** from the list of detected compilers on your system.\n\n4. After the build succeeds, your program's output will appear in the integrated **Terminal**.\n\nor\n- Open the terminal in VS Code and type:\n\n```bash\ng++ main.cpp -o main\n```\n\n`./main`\n\nThis will compile `main.cpp` and create an executable named `main`. Running `./main` will display \"Hello, World!\" in the terminal.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebigboss%2Fcpp-mstr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytebigboss%2Fcpp-mstr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebigboss%2Fcpp-mstr/lists"}