Forum Stats

  • 3,851,383 Users
  • 2,263,969 Discussions
  • 7,904,691 Comments

Discussions

Please shed some light...

843793
843793 Member Posts: 41,732 Green Ribbon
edited May 20, 2003 4:56AM in Generics
Not having good knowledge of C++ concepts, especially the use of templates and typedefs, I am unable to comprehend some of the high level discussions going on in this forum about why the Java Generics framework is nothing compared to the C++ concept, doesnt even come close to it... Could someone point me to a resource on www (or a book), where I can get some basic understanding of these C++ concepts, to be able to better appreciate the discussions.

Thanks,
Vivek.

Comments

  • 843793
    843793 Member Posts: 41,732 Green Ribbon
    Stroustrup is the creator of C++, his book is popular:
    http://www.amazon.com/exec/obidos/tg/detail/-/0201700735/qid=1053351310/sr=8-1/ref=sr_8_1/002-9493111-1800030?v=glance&s=books&n=507846
  • 843793
    843793 Member Posts: 41,732 Green Ribbon
    While Stroustrup is indeed the creator of C++, and his book is the definitive reference on the language (outside of the actual C++ standard itself), there is some material that's probably better suited to your problem.

    C++ Templates: The Complete Guide

    http://search.barnesandnoble.com/textbooks/booksearch/isbnInquiry.asp?userid=2TWLIW9RVC&isbn=0201734842&TXT=Y&itm=5

    As you could guess, this book is primarily focused on the C++ template mechanism. It's written by two well known experts on the subject - folks who probably have a deeper understanding of template programming then Stroustrup himself. In fact, I've been waiting to see a book like this for years.

    God bless,
    -Toby Reyelts

  • 843793
    843793 Member Posts: 41,732 Green Ribbon
    Oh, I should also mention Modern C++ Design, because it makes heavy use of templates, but that book will just blow you away unless you're already well accomplished with templates and C++ in general.

    God bless,
    -Toby Reyelts
  • 843793
    843793 Member Posts: 41,732 Green Ribbon
    But given that he's saying "Not having good knowledge of C++ concepts...", don't you think he should pursue a book that covers C++ fundamentals as well?
  • 843793
    843793 Member Posts: 41,732 Green Ribbon
    If he needs to learn about C++ fundamentals first, I'd recommend he read "Accelerated C++" which is much more geared towards that. The book assumes that you're already an experienced programmer, but new to C++.

    Then, to really understand templates, I'd suggest reading a book geared towards them. Yes C++ templates are so powerful that they really do warrant a book in and of themselves.

    God bless,
    -Toby Reyelts
  • 843793
    843793 Member Posts: 41,732 Green Ribbon
    Thanks guys... Well I have been programming in Java since the last 6 years, have some experience with C, but not C++... So I guess I will have to read the basics too, and also the book on <templates>... looks like a long way to go, but thanks for giving the driving-directions !!!
This discussion has been closed.