These are the solutions to all C and C++ exercises accompanying my lecture "Programming 1" (introduction into C and C++).
For the text of the exercises see: http://www.juergenbrauer.de/teaching/pro1/pro1.html
First try to solve each exercise by your own and only afterwards have a look into the sample solutions.