472,789 Members | 1,041 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,789 software developers and data experts.

Need a C++ update

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
7 2283
"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
"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
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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Irvin | last post by:
I new to ASP.net and am using the following code to attempt to update an Access 2000 mdb. The code does make it through the code following "try". NO rows are updated. There is a row with the...
3
by: Larry Woods | last post by:
I have a datagrid that is carrying all fields of a record...except one. Now I want to update the underlying database via a dataadapter. The update is working but the field that is "left out" is...
2
by: Richard | last post by:
Hi, I have 1 dataset with 2 tables (Table1 as parent, Table2 as Child), 1 row in both the tables. I am updating it with a transaction. First parent then child. When child update fails, it raise...
4
by: Gary Paris | last post by:
This should be simple but I can't get it to work. I want to update a single row of data in a table. ES.Clear() Dim strSQL As String = "Select * from Contact where sysid = '" & g_sysID & "'"...
5
by: Learner | last post by:
Hello, Here is the code snippet I got strucked at. I am unable to convert the below line of code to its equavalent vb.net code. could some one please help me with this? static public...
4
by: misterutterbag | last post by:
Hi. Given the following: ---------------- String lockSubscriptionQuery = "SELECT subscriptionId FROM subscription WHERE subscriptionId = ? FOR UPDATE"; pStmt =...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
2
by: HarisHohkl | last post by:
Hi, I've this function in a class to update the total value.but when i try to remove the these row highlight in Bold it crash, what should i do???? void display_total_value() { double...
0
by: JimN1 | last post by:
Error: Update requires a valid UpdateCommand when passed DataRow collection with modified rows. This is a continuation of my previous table element update question. I am now getting the above...
1
by: evilbungle | last post by:
Good Morning, Hopefully someone can help me with what I am assuming is a simple query that I simply can't get to work. I am new to using Visual Basic and I am using Visual Studio 2005,...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.