Need a C++ update

E

epilitimus

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
 
M

Mike Wahler

epilitimus said:
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
 
V

Victor Bazarov

epilitimus said:
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
 
E

epilitimus

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
 
M

Mike Wahler

epilitimus said:
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
 
I

Ioannis Vranos

epilitimus said:
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
 
T

tarun.mohapatra

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
 
E

epilitimus

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,647
Latest member
NelleMacy9

Latest Threads

Top