Compiling C++11 with g++

Flags (or compiler options) are nothing but ordinary command line arguments passed to the compiler executable. Assuming you are invoking g++ from the command line (terminal): $ g++ -std=c++11 your_file.cpp -o your_program or $ g++ -std=c++0x your_file.cpp -o your_program if the above doesn’t work.

reversing list in Lisp

Your code as written is logically correct and produces the result that you’d want it to: That said, there are some issues with it in terms of performance. The append function produces a copy of all but its final argument. E.g., when you do (append ‘(1 2) ‘(a b) ‘(3 4)), you’re creating a four new cons cells, … Read more

Bash if statement with multiple conditions throws an error

Use -a (for and) and -o (for or) operations. tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html Update Actually you could still use && and || with the -eq operation. So your script would be like this: Although in your case you can discard the last two expressions and just stick with one or operation like this:

Compiling C++11 with g++

Flags (or compiler options) are nothing but ordinary command line arguments passed to the compiler executable. Assuming you are invoking g++ from the command line (terminal): $ g++ -std=c++11 your_file.cpp -o your_program or $ g++ -std=c++0x your_file.cpp -o your_program if the above doesn’t work.