All C++ projects Projects Overview 📂 Here is a summary of the projects you can find in this repository. To run one, you'll need its Folder Name for the instructions in the next section. ... ... ...
Export to Sheets How to Compile and Run a Project 🛠️ Follow these steps to run any project from the list above.
Step 1: Clone the Repository First, get a local copy of this repository on your machine and navigate into it.
Bash
git clone https://github.com/naol45/Programming-with-Cplusplus.git cd Programming-with-Cplusplus Step 2: Navigate to a Project Folder Choose a project from the table and use its Folder Name to go into that directory.
Bash
cd Project_1_Folder Step 3: Compile the Code Use the g++ compiler to compile the main.cpp file. This will create an executable program named a.out in the same folder.
Bash
g++ main.cpp Note: If your main C++ file has a different name, replace main.cpp with the correct file name.
Step 4: Run the Program Execute the compiled program to see the output in your terminal.
Bash
./a.out