Collection of small programs written to practice C++ programming skills
Make sure you are in the same directory as the programName.cpp file and in the terminal type:
g++ -std=c++11 -O2 -Wall programName.cpp -o programName.out
g++: tells the computer the given command is for g++ compiler.-std=c++11: the compiler follows C++11 standard, you can set it to -std = c++14 or -std=c++17 based on what you want to use.-O2: Optimizes the code-Wall: shows warnings about possible errorsprogramName.cpp: refers to the c++ file to be compiled-o programName.out: creates a executable file of the suggested name( here programName.exe).
Note: The name of cpp file and executable file need not be same.