Follow first 8.5 minutes of https://www.youtube.com/watch?v=Cvrqmq9A3tA
Summary:
Post-install:
sudo apt install gcc g++ make gdb zip mkdir /mnt/c/cpp cd; echo "cd /mnt/c/cpp" >> .profileThe cd in .profile will go to /mnt/c/cpp automatically on startup.
Easy: Ubuntu installation in VirtualBox
Hard: Disk defragment and partition and problems
Post-install:
sudo apt update sudo apt upgrade sudo apt install gcc g++ make gdb zip
Install Xcode? https://www.youtube.com/watch?v=1E_kBSka_ec
...
Test Program
In any of the above environments, in a terminal window, in your cpp subdirectory:
$ wget http://fog.misty.com/perry/cpp/examples/Point/Point.zip ... $ unzip Point.zip ... $ rm Point.zip $ cd Point $ make g++ -std=c++17 -pedantic -Wall -g -c main.cc g++ -std=c++17 -pedantic -Wall -g main.o -o main $ ./main p: (1,2) q: (3,4) distance = 2.82843 $ nano Point.h ... $ make clean $ cd .. $ zip -r Point.zip Point
Web-based Environments
Other Environments