2

I am a teacher of programming. For the C++ course, I need a good reference to provide educational example problems and their solutions. I know some popular problems but I like to see them all in a one place and choose between them.

Do you know some website to achieve this?

Alexar
  • 1,858
  • 5
  • 24
  • 34
  • 8
    Are you using [a good introductory book](http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list)? If so, it should have lots of code samples. Otherwise, can't you write your own? – James McNellis Jan 11 '11 at 18:11
  • 2
    I really liked `Accelerated C++` that was written initially as part of a course. It has many examples of text processing, which might seem a little odd now that almost nobody uses the terminal anymore... – David Rodríguez - dribeas Jan 11 '11 at 18:19
  • These a copyrighted materials. You'd better check what kind of fair use clause exists in your country of residence. Schools often have rules too. Reference: http://home.earthlink.net/~cnew/research.htm – Hans Passant Jan 11 '11 at 18:24
  • 3
    @James: Sounds like a high school "CS" class. If that is the case, the teachers often don't know much more than the students. – Ed S. Jan 11 '11 at 18:29
  • 1
    @David: I use the terminal as much as I can. – Paul Nathan Jan 11 '11 at 18:44
  • 3
    @EdS: Oh. That could be. I jumped to the conclusion that it was a college-level CS course. I don't know how one can really teach something without being familiar with it :(. – James McNellis Jan 11 '11 at 18:47
  • Well... they can't, but they try :) – Ed S. Jan 11 '11 at 19:25
  • A teacher looking for a source to plagerize from? No wonder I have had to extensively retain every programmer fresh out of college I've ever hired. – John Dibling Jan 12 '11 at 00:16
  • @David: That's indeed a great book for teaching. I have taught C++ based on that book's approach for many years, and I believe successfully. (Be warned, though, if you read this and consider buying it in order to _learn_ C++ on your own. It has a _very_ steep learning curve. If you're fine with that, that's Ok, but if not, consider buying [another book instead](http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list).) – sbi Jan 12 '11 at 10:57
  • @takpar also check out this [proposal](http://area51.stackexchange.com/proposals/11464/code-review?referrer=aWNm_PdciyFqjFW8CUacGw2 "code review") on stack-exchange. – greatwolf Jan 14 '11 at 07:27

3 Answers3

3

Accelerated C++ is your best bet.

editorializing note: I've gone through an enormous amount of intro C++ books. There is so much drek out there, it's mind-blowing. I think Accelerated C++ is pretty concise and lucid. It has the disadvantage of being short, so it can't be used as monitor-lifting fodder.

I didn't know about it at the time and I went through piles of other books. Jesse Liberty's C++ in 24 hours was the most useful of the books I found when I was learning. Looking back on it, that's sort of surprising, given the X in Y hours reputation.

Paul Nathan
  • 39,638
  • 28
  • 112
  • 212
0

Trying to keep the line of a book, it's a great idea since, you all the examples will have the same line of, let's say logic. A great book, that help me out was written by H. M. Deitel, it has several programming books, and in my point o view, are very well explained.

Carlos Valenzuela
  • 816
  • 1
  • 7
  • 19
0

You can't find better questions/examples targeted on understanding of C++ (including advanced) topics than Herb Sutter's Guru of the Week series (http://gotw.ca/publications/index.htm)

Gene Bushuyev
  • 5,512
  • 20
  • 19