Example: optimizing the diet problem in C++

Shows an example of the C++ API.