Are you writing opencv programs in ubuntu? : I need your help!

I have been troubled by the problem these days. I want to write opencv-3.0.0 programs with c language in the terminal of my ubuntu 14.04 in the VM. 

Could you please give me an example of yours?