This repository contains C++ code that can be compiled and executed directly from GitHub. Follow the instructions below to run the code on your local machine.
Before running the code, ensure that you have the following installed on your system:
- C++ compiler (e.g., g++)
- Git
- Clone the Repository: Open your terminal and run the following command to clone this repository to your local machine:
git clone https://github.com/Eda-Yildirim/Major-Assignment
- Navigate to the Repository: Change your current directory to the cloned repository:
cd Major-Assignment
- Compile the Code: Use the appropriate command to compile the C++ code. For example, if your C++ file is named
example.cpp, you can compile it usingg++:
g++ question_1.cpp -o output
- Run the Executable: After successful compilation, execute the generated executable:
./question_1
- Modify the instructions and commands as needed based on your specific requirements and file structure.