These are some useful C commands I created, feel free to update them.
- g++: Ensure you have g++ installed and accessible in your system's PATH.
- Clone this Repository
git clone https://github.com/SaadQayyum03/Helpful-C-commands.git
- Add the folder you cloned to Enviromental Variables
- For Windows:
- Right-click on 'This PC' or 'My Computer' and select 'Properties'.
- Click on 'Advanced system settings' and then on 'Environment Variables'.
- In the 'System variables' section, scroll down and select the 'Path' variable, then click 'Edit'.
- Click 'New' and add the path to the folder where you cloned the repository.
- Click 'OK' to close all dialogs
- For Windows:
Use this command to build and run your C program. Navigate to your project's root directory and execute:
bar [Path to your Main C++ file]
Or simply:
bar
If your main file is named 'main.cpp'. This command compiles the main file using g++ and outputs the executable to a bin folder, which is created if it doesn't already exist.
Saad Qayyum - s.qayyum2003@gmail.com
Project Link: https://github.com/SaadQayyum03/Helpful-C-commands