-> sudo apt-get update
Now install the C++ compiler by entering the following:
-> sudo apt-get install g++
Compiling a Simple C++ Program
The simple “Hello World” C++ code shown below can be used to test if the C++ compiler is installed and working. Save the code to a text file called hello.cpp.
int main (void)
std::cout << "Hello, world!\n";
Compile the above program using the GCC C++ compiler as shown below. Open a terminal window and change directory to the directory containing the hello.cpp file before compiling.
"g++ -o hello hello.cpp"
This will create an executable file called hello which can be run from the terminal window by entering the following command.
https://360digitmg.com/india/artificial ... in-chennai
https://www.kellytechno.com/Hyderabad/C ... e-Training
https://www.kellytechno.com/Hyderabad/C ... s-training