Collection of C++11 Examples
Jared Bruni's C++11 Examples
I am just going through and writing stuff to help me remember and practice
some of the new features of C++11. I will create a new repo for C++14.
Most of the examples have a driver just to test the code. Do not do anything
useful except to demonstrate those specific features.
There is also a calculator for parsing expressions that is similar to
the one from "The C++ Programming Language" 4th Edition.
Note:
To compile make sure your compiler supports C++11 with clang I use:
say for sourcefile.cc
clang++ sourcefile.cc -o sourcefile -std=c++11
For Linux use libstdc++ instead of libc++ and g++ 4.8 or greater
You will need to modify the Makefiles to compile these examples
on Linux since they are all designed to use clang.
Each program only requires one line to compile it.
g++ sourcefile.cc -o sourcefile -std=c++11
- Jared Bruni
Access it Here: https://github.com/lostjared/cplusplus11.Examples