Your sublimetext build system is not set up properly
Click Tools->Build System-> new Build system, copy the code below and save it. The name will be c++11. Then you can select the c++ you just created in the build system. +11.
PS: This script will not only compile but also run automatically
Your sublimetext build system is not set up properly
Click Tools->Build System-> new Build system, copy the code below and save it. The name will be c++11. Then you can select the c++ you just created in the build system. +11.
PS: This script will not only compile but also run automatically
General method:
Install Xcode
Open Terminal
cd to the directory where cpp is located
Input
clang++ name.cpp
CompileEnter
./a.out
to run