How to access camera

I want to access the camera by using c or c++
so, can any one give me the program for that..!!!
and too can any one tell me where the input image will be stored and how to manipulate by getting that image using c or c++...!!!
Topic archived. No new replies allowed.