ubuntu gcc 7.0 code example
Example 1: gcc 7 install ubuntu
sudo apt install software-properties-commonsudo add-apt-repository ppa:ubuntu-toolchain-r/test
Example 2: gcc 7 install ubuntu
sudo update-alternatives --config gcc
sudo apt install software-properties-commonsudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo update-alternatives --config gcc