[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-multimedia
Subject: Re: adding properties to a C++ class
From: Scott Wheeler <scott () slackorama ! net>
Date: 2001-12-18 9:46:49
[Download RAW message or body]
Yes, I have planned on picking up another C++ book. I currenly have
"Navigating C++ and Object Oriented Design" by Paul and Gail Anderson, but
its index is lacking and so it really isn't great as a reference.
I've actually written several thousand lines of C++ on a handful of projects,
but there are still a lot of things that I just don't understand (yet). I've
programmed in a very motley collection of languages before, but have learned
C++ mostly as I go. When I was in school we were still mostly using Pascal.
:-)
So would others recommend this book? I've also been considering "The C++
Programming Language" by Bjarne Stroustrup as it appears that it would be a
good reference.
-Scott
On Tuesday 18 December 2001 04:34 am, Guillaume Laurent wrote:
> On Tuesday 18 December 2001 10:20, Scott Wheeler wrote:
> > Then QListView sends a signal which passes a pointer to a QListViewItem,
> > which I've implemented a slot for. In the slot's implementation I do a
> > static cast:
> >
> > myListItem *item=static_cast<myListItem*>(QLVitem);
>
> It will work if QLVitem* is really a myListItem*, but you can't check that
> so it isn't really safe. Use dynamic_cast<> instead, which performs the
> check.
>
> I suggest you get a copy of "C++ Primer", by Stanley Lippman, Addison
> Wesley Ed.
_______________________________________________
kde-multimedia mailing list
kde-multimedia@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-multimedia
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic