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.
Now, why didn't you try that?
Typos - why is Chrome not underlining speelling errors? - OriginalGriff[/edit]