Mac: Terminal Commands
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install gcc
brew install gcc --HEAD
cc -dumpversion
gcc --version
Compile and Run cpp file:
g++ filename.cpp
./a.out filename.cpp
After Successful build:
ls ...
./main //(builded main file)
Terminal: Build and rund
g++ main.cpp Player.cpp
./main