There are so many features not available in C++11. The latest version available is C++11. Also I don't see an option to choose the compiler. Is there a way to change clang to gcc?
Try using the shell as @a5rocks said. To save yourself the trouble of typing the whole command the whole time, make a blank file called main and fill the file with
(g++ or gcc)
(-std=c++17 sets the language standard to C++17, you can change it to -std=c++14 etc to use C++14 or whatever else)
to run, open the shell and type bash main.
How do I enable C++14, C++17, C++2a and switch compilers
There are so many features not available in C++11. The latest version available is C++11. Also I don't see an option to choose the compiler. Is there a way to change clang to gcc?
Try using the shell as @a5rocks said. To save yourself the trouble of typing the whole command the whole time, make a blank file called
main
and fill the file with(
g++
orgcc
)(
-std=c++17
sets the language standard to C++17, you can change it to-std=c++14
etc to use C++14 or whatever else)to run, open the shell and type
bash main
.@SPQR save yourself having to type bash and put
#!/bin/sh
at the top of main thenchmod u+x main
. from then on./main
😅