If your homework is to "get a program" and "analyse it" then assuming you don't care what kind of c++ program, then google would have been your first bet.
After that, the search facility on this very site will lead very quickly (it took me a few seconds to work it out, but hey!) to more than 8000 C++ articles, nearly all of which will have source code.
http://www.codeproject.com/search.aspx?doctypeid=1&field=tag&q=C%2b%2b[
^]
Now, why didn't you try that?
[edit]Typos - why is Chrome not underlining speelling errors? - OriginalGriff[/edit]