ILOG CPLEX 10.2 User's Manual > Discrete Optimization > Solving Mixed Integer Programming Problems (MIP) > Examples: Optimizing a Basic MIP Problem > ilomipex1.cpp

The example derives from ilolpex8.cpp. Here are the differences between that linear program and this mixed integer program: