Saturday

CodeBlocks: Old CodeBlocks IDE to set C++ ISO standard: C++ 2011 / C++ 2014 / C++ 2017 / C++ 2020

You can use old CodeBlocks because CodeBlocks is just an IDE code editor and you can change to the new C++ compiler mingw version.

Do the following steps.

Open CodeBlocks
Menu > Settings > Compiler
Selected compiler: GNU GCC Compiler
Tab on "Compiler settings"
Tab on "Other compiler options"
Type: -std=c++11    or    -std=c++14   or    -std=c++17    or    -std=c++2a
Click the button OK

No comments:

Measure execution time with Julia, example using sorting algorithms

# random integers between 1 and 100 inclusive, generate thousands of them x = rand ( 1 : 100 , 100000 ) @time sort (x; alg=InsertionSort, r...