473,581 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asking about good books

I just started c programming. I want to migrate to c++. I know a little
bit about class/inheritance.
I am asking for good books to read. Elementary will be good.

Thanks for any comments

Jan 9 '06 #1
17 1880
I_got_questions ? wrote:
I just started c programming. I want to migrate to c++. I know a little
bit about class/inheritance.
I am asking for good books to read. Elementary will be good.


"Accelerate d C++" by Koenig & Moo.

Resist the temptation to code C++ like it's C, you'll lose a lot of it's
power. Reading that book will get you from "Hello World" to solving
problems which are much more interesting, and very little of it, if any,
looks like C.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Jan 9 '06 #2
On 2006-01-09, I_got_questions ? <un************ @hotmail.com> wrote:
I just started c programming. I want to migrate to c++. I know a little
bit about class/inheritance.
I am asking for good books to read. Elementary will be good.


The two C++ books I own and constantly referencing are:

The C++ Programming Language 3rd Ed.: Bjarne Stroustrup
The C++ Standard Library: Nicolai M. Josuttis

They are really very handy.

- Russell
Jan 9 '06 #3
"I_got_question s?" <un************ @hotmail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
I just started c programming. I want to migrate to c++.
First some speculation about your motives, and some
corresponding remarks:

Does this mean you're abandoning learning C and want
to learn C++ first or instead? If so, fine. If you're wanting
to learn both simultaneously, I strongly recommend against it,
as the very similar syntax, but often very different semantics,
will probably cause confusion with both languages.

If you're wanting to use C++ knowledge as an 'extension'
to your C knowledge, This is a mistake. C and C++ are two
separate, distinct langauges.
I know a little
bit about class/inheritance.
I am asking for good books to read. Elementary will be good.

Thanks for any comments


Visit www.accu.org, look at the book review section,
category 'beginner's C++'.

My personal recommendation for you would be:
www.acceleratedcpp.com

-Mike

Jan 9 '06 #4

Mike Wahler wrote:
"I_got_question s?" <un************ @hotmail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
I just started c programming. I want to migrate to c++.


First some speculation about your motives, and some
corresponding remarks:

Does this mean you're abandoning learning C and want
to learn C++ first or instead? If so, fine. If you're wanting
to learn both simultaneously, I strongly recommend against it,
as the very similar syntax, but often very different semantics,
will probably cause confusion with both languages.

If you're wanting to use C++ knowledge as an 'extension'
to your C knowledge, This is a mistake. C and C++ are two
separate, distinct langauges.

Thank you all for the suggestions. It is very helpful.
I perhaps should know more about C programming before I move to C++.

Jan 10 '06 #5
I'd recommend two books:
1) Deitel "Programmin g in C++"
If thats too easy, try abovementioned Stroustrup "The C++ Language",

Jan 10 '06 #6

"I_got_question s?" <un************ @hotmail.com> wrote in message
news:11******** *************@g 47g2000cwa.goog legroups.com...

Mike Wahler wrote:
"I_got_question s?" <un************ @hotmail.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
>I just started c programming. I want to migrate to c++.


First some speculation about your motives, and some
corresponding remarks:

Does this mean you're abandoning learning C and want
to learn C++ first or instead? If so, fine. If you're wanting
to learn both simultaneously, I strongly recommend against it,
as the very similar syntax, but often very different semantics,
will probably cause confusion with both languages.

If you're wanting to use C++ knowledge as an 'extension'
to your C knowledge, This is a mistake. C and C++ are two
separate, distinct langauges.

Thank you all for the suggestions. It is very helpful.
I perhaps should know more about C programming before I move to C++.


No. This is a very common misconception. No knowledge
of one langauge is necessary in order to learn the other.
(As a matter of fact it can sometimes be a hindrance).
See this excerpt from the FAQ for 'alt.comp.lang. learn.c-c++'
(the 'learner's group): http://ma.rtij.nl/acllc-c++.FAQ.html#q2.3
Also see:
http://www.parashift.com/c++-faq-lit....html#faq-28.2
and:
http://public.research.att.com/~bs/learn.html

If you want to learn C, learn C.
If you want to learn C++, learn C++.
If you want to learn both, learn both. Either one first.
But trying to learn both simultaneously is imo a recipe
for insanity. :-)

Informational: C++ (especially its standard library) has
features that can protect you from many of the common
errors that are easy to make and hard to find in C.
If you read a C++ book like "Accelerate d C++", imo as
a beginner you'll much more quickly write more useful
programs with less bugs than with C and a beginner's
C text.

-Mike
Jan 10 '06 #7
Mike Wahler wrote:
"I_got_question s?" <un************ @hotmail.com> wrote in message
news:11******** *************@g 47g2000cwa.goog legroups.com...

No. This is a very common misconception. No knowledge
of one langauge is necessary in order to learn the other.
(As a matter of fact it can sometimes be a hindrance).
See this excerpt from the FAQ for 'alt.comp.lang. learn.c-c++'
(the 'learner's group): http://ma.rtij.nl/acllc-c++.FAQ.html#q2.3
Also see:
http://www.parashift.com/c++-faq-lit....html#faq-28.2
and:
http://public.research.att.com/~bs/learn.html

If you want to learn C, learn C.
If you want to learn C++, learn C++.
If you want to learn both, learn both. Either one first.
But trying to learn both simultaneously is imo a recipe
for insanity. :-)

Informational: C++ (especially its standard library) has
features that can protect you from many of the common
errors that are easy to make and hard to find in C.
If you read a C++ book like "Accelerate d C++", imo as
a beginner you'll much more quickly write more useful
programs with less bugs than with C and a beginner's
C text.


What he said.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Jan 10 '06 #8
"Mike Wahler" <mk******@mkwah ler.net> writes:
[...]
"I_got_question s?" <un************ @hotmail.com> wrote in message
Thank you all for the suggestions. It is very helpful.
I perhaps should know more about C programming before I move to C++.


No. This is a very common misconception. No knowledge
of one langauge is necessary in order to learn the other.
(As a matter of fact it can sometimes be a hindrance).


Strange that anyone would say this, since the overlap between the two
is large.

I don't think it's "necessary" to learn C first, but it would probably
be optimum, since, for the most part, C is a subset of C++, and
new concepts are usually better-learned in smaller chunks rather
than larger chunks.

But far be it from me to contradict "the experts..."
--
% Randy Yates % "How's life on earth?
%% Fuquay-Varina, NC % ... What is it worth?"
%%% 919-577-9882 % 'Mission (A World Record)',
%%%% <ya***@ieee.org > % *A New World Record*, ELO
http://home.earthlink.net/~yatescr
Jan 10 '06 #9
Randy Yates wrote:

[ ... ]
No. This is a very common misconception. No knowledge
of one langauge is necessary in order to learn the other.
(As a matter of fact it can sometimes be a hindrance).
Strange that anyone would say this, since the overlap between the two
is large.


Yes and no -- the overlap between the languages proper is quite large,
but the overlap between the parts a beginner wants/needs to learn first
are substantially smaller.
I don't think it's "necessary" to learn C first, but it would probably
be optimum, since, for the most part, C is a subset of C++, and
new concepts are usually better-learned in smaller chunks rather
than larger chunks.


IMO, it's far from optimum. The problem is simple. what you learn at
the very first with both languages (e.g. x=y+z;) is identical. Almost
as soon as you move much beyond that, you have to learn _more_ with C
than with C++ to really do much. E.g. to write even a trivial program
to read in a text file, sort the lines, and print them back out, is
considerably more work to do at all well with C than with C++.

--
Later,
Jerry.

Jan 10 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1944
by: Christine | last post by:
I am looking for some good C/C++ tutorials either online or in book form. I am using Dev C/C++ 4 (from www.bloodshed.net) and I am using WindowsXP operating system. I don't have the money for MS Visual C++ at this point. Can anyone tell me if I have a good compiler/IDE? I don't plan on doing anything huge. Using tutorials, I have...
7
5252
by: tada991 | last post by:
Hello Everyone, I just purchased Visual Studio .Net Architect 2003 and want to know what's a good book for begginers to start with. I know nothing about programming whatsoever, but I do have a desire to learn- as obvious with this purchase. So please let me know where I can start and thanks. Also, what newsgroup should I post my queries to?
258
8489
by: Terry Andersen | last post by:
If I have: struct one_{ unsigned int one_1; unsigned short one_2; unsigned short one_3; }; struct two_{ unsigned int two_1;
7
1958
by: MiniStreak | last post by:
Hi fellow programmers................... I am trying to learn ASP .NET ver 1.1 using VB .NET only on a windows 200 Pro machine. I have done quite a bit with ASP 3 but have been off programming for about a year... Can any of you recommend a good book from a reputable author? Thanks in advance for your comments and suggestions. Best...
7
1713
by: boostngti via DotNetMonster.com | last post by:
I have 4 years of programing exp. with Coldfusion, and I am begining to learn ASP.NET C# and was wondering if some people could suggest some good books. I went to Barnes & Noble the other day and kind of looked over a few book. If anyone has read any of the following I would like to know what you thought of the book. Beginning ASP.NET...
3
1194
by: Khaled Hussein | last post by:
Hi every body, I am working as freelancer, and I wanted to start posting my CV and ask for job offers... But as I know that this is a public newsgroups so I am not allowed to do all what comes up to my mind. I wanted to ask about the rules. Am I allowed to post my CV in here, and ask for a job offer? Thanks Khaled Hussein
4
1825
by: Sumit | last post by:
Hello! I I am new to this group and a beginner in C programming. I want to know that now should I give more importance in learning programming fundamentals and program solving or on good programming practices like including comments in programmes and using functions. Can anyone help me out there
2
1994
by: SF | last post by:
Hi, I have done some coding with Access and I want to try using VB.NET. I am looking for a good book with examples specially on data access (database). Could someone in this group recommend? Does 'Hitchhikers Guide to Visual Studio and SQL Server Best Practice Architectures and Examples (7th Edition)' use VB.NET platform? SF
76
4017
by: lorlarz | last post by:
Crockford's JavaScript, The Good Parts (a book review). This shall perhaps be the world's shortest book review (for one of the world's shortests books). I like Douglas Crockford (because I am a crabby old man too; plus he _is_ smart and good).. But, how can he write a book on the good parts of JavaScript and not mention functions that...
0
7869
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8151
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8306
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7900
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6555
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5677
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3806
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1139
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.