By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,898 Members | 2,012 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,898 IT Pros & Developers. It's quick & easy.

Need a C++ update

P: n/a
Hello all,
I'm one of those old hand C/C++ programmers that learned the language
by the seat of my pants back in the good old days (or bad depending on
you point of view). Most of my work has been with Borland C++ 4.5x and
GCC 2.95.3.
To make a longish story shorter, I recently upgraded to a newer, and
more standards compliant, complier, and am discovering that a lot has
changed in the language.
What I'm looking for is some suggestions/references for updating my
C++ knowledge. I've found a couple: http://www.cppreference.com and
http://www.cplusplus.com. I guess I'm looking for the gee whiz
reference. Something that will answer questions like how do I get the
members of the #?!!#? public base class to be directly accessible in
the derived class?
Any suggestions will be appreciated and greeted with heartfelt
Owzahs<g>. I'ld really rather not have to beat my head on the wall
again.

______________
Glenn Pavlovic
Motto: I am what I choose to be, for which I make no apologies, no
excuses.

String Trimmer Support Wheels
http://www.weedwheels.com

Jul 23 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
"epilitimus" <mo*********@netscape.net> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Hello all,
I'm one of those old hand C/C++ programmers that learned the language
Note that C and C++ are two separate, distinct languages,
despite their very similar syntax.
by the seat of my pants back in the good old days (or bad depending on
you point of view). Most of my work has been with Borland C++ 4.5x and
GCC 2.95.3.
To make a longish story shorter, I recently upgraded to a newer, and
more standards compliant, complier, and am discovering that a lot has
changed in the language.
What I'm looking for is some suggestions/references for updating my
C++ knowledge. I've found a couple: http://www.cppreference.com and
http://www.cplusplus.com. I guess I'm looking for the gee whiz
reference. Something that will answer questions like how do I get the
members of the #?!!#? public base class to be directly accessible in
the derived class?
All public and protected members of a class are directly
accessible by any classes which publicly derive from that
class.
Any suggestions will be appreciated and greeted with heartfelt
Owzahs<g>. I'ld really rather not have to beat my head on the wall
again.


I recommend you start with these books:
http://www.acceleratedcpp.com/
www.research.att.com/~bs/3rd.html
www.josuttis.com/cppbook/index.html
www.josuttis.com/libbook (standard library)

(There are many more advanced books I'd recommend
as well, but the above should be plenty enough
to get you started).

You might also want to check out the book reviews
at www.accu.org

There's only one online book I'm willing to recommend:
http://mindview.net/Books/TICPP/ThinkingInCPP2e.html

And don't forget the C++ FAQ:
http://www.parashift.com/c++-faq-lite/

HTH,
-Mike
Jul 23 '05 #2

P: n/a
"epilitimus" <mo*********@netscape.net> wrote...
I'm one of those old hand C/C++ programmers that learned the language
by the seat of my pants back in the good old days (or bad depending on
you point of view). Most of my work has been with Borland C++ 4.5x and
GCC 2.95.3.
To make a longish story shorter, I recently upgraded to a newer, and
more standards compliant, complier, and am discovering that a lot has
changed in the language.
What I'm looking for is some suggestions/references for updating my
C++ knowledge. I've found a couple: http://www.cppreference.com and
http://www.cplusplus.com. I guess I'm looking for the gee whiz
reference. Something that will answer questions like how do I get the
members of the #?!!#? public base class to be directly accessible in
the derived class?
Any suggestions will be appreciated and greeted with heartfelt
Owzahs<g>. I'ld really rather not have to beat my head on the wall
again.


It seems that you're looking for Q&A type of source. The only one that
I know that fits that definition is FAQ. It's relatively small, though.
IIRC, the author and maintainer of the online C++ FAQ Lite has also
published a book called "C++ FAQ", which if memory serves me well, had
also been updated and exist in its second edition. I can be mistaken,
of course.

A word of caution, though (not about the book, I've not read it). C++
is rather complicated language and while people have attempted to make
some kind of "how to" recipe books for it, none cover the language well
or in its breadth and entirety. It is, therefore, strongly advised to
learn the language just like any other, systematically and while trying
to use it in a real-life project.

You're most welcome to post your "how do I ..." questions here and we
will be happy to help. Don't make c.l.c++ the only source of your
knowledge, however. Books, web sites, newsgroups, colleagues, all
provide what taken as a whole constitutes the *wealth* of information.

V
Jul 23 '05 #3

P: n/a
Thanks. I'll look them up. The problem with the class members was
probably a consequence of it being a template definition, as opposed to
a simple class.

---------------------
Glenn Pavlovic
Motto: I am what I choose to be, for which I make no apologies, no
excuses.

String Trimmer Support Wheels
http://www.weedwheels.com

Jul 23 '05 #4

P: n/a
"epilitimus" <mo*********@netscape.net> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
Thanks. I'll look them up. The problem with the class members was
probably a consequence of it being a template definition, as opposed to
a simple class.


If you post the code, I or someone else
can probably point out the problem.

-Mike
Jul 23 '05 #5

P: n/a
epilitimus wrote:
Hello all,
I'm one of those old hand C/C++ programmers that learned the language
by the seat of my pants back in the good old days (or bad depending on
you point of view). Most of my work has been with Borland C++ 4.5x and
GCC 2.95.3.
To make a longish story shorter, I recently upgraded to a newer, and
more standards compliant, complier, and am discovering that a lot has
changed in the language.
What I'm looking for is some suggestions/references for updating my
C++ knowledge. I've found a couple: http://www.cppreference.com and
http://www.cplusplus.com. I guess I'm looking for the gee whiz
reference. Something that will answer questions like how do I get the
members of the #?!!#? public base class to be directly accessible in
the derived class?
Any suggestions will be appreciated and greeted with heartfelt
Owzahs<g>. I'ld really rather not have to beat my head on the wall
again.

You can either read "Accelerated C++" by Andrew Koenig, Barbara Moo to
become familiar with the Standard C++ basics

http://www.acceleratedcpp.com
or read "The C++ Programming Language" 3rd Edition or Special Edition by
Bjarne Stroustrup (the creator of C++) to learn the entire language
(which will take much time of course)

http://www.research.att.com/~bs/3rd.html


--
Ioannis Vranos

http://www23.brinkster.com/noicys
Jul 23 '05 #6

P: n/a
Hi,
I have collected some of the questions. That may contain some silly
questions on C++. For preparing answars it may take some time. I will
post it here. I need help from all of you guys to get answars for some
difficult questions. Thanks

Jul 23 '05 #7

P: n/a
Thanks all for the suggestions and references. I think I'm starting to
get a hold on things, the namespace thing had me for a while, it's a
lot like java. I will be back if I get stuck, but I think I'll use the
tried and true method of swearing at the keyboard for the time
being<g>.
So for now thanks again!

Jul 23 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.