answered 2015-08-23 18:52:42 -0600
Have a look at cpp_classification sample. You can find it under caffe/examples folder. https://github.com/BVLC/caffe/blob/master/examples/cpp_classification/classification.cpp Hope this helps.
Masahiro