473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

What are good c++ books for beginners and advanced programmers?

What book will be good to study c++ by our self from basic to advance and where i can have practice question ?
Apr 6 '14 #1
2 1957
weaknessforcats
9,208 Expert Mod 8TB
My best advice is to select a C++ book that you are able to read.

Then, do all of the examples using your own compiler so you can see if your code gets the same results as the code in the book.

Go through the entire book.

Then get another book and repeat the process.

Never red the same book twice.

I went through eight books before things really started to make sense.
Apr 6 '14 #2
I started programming with Borland Turbo C 1.0 back in 1987. It came on one 3.5 inch floppy at the time. I didn't have a lot of money then, so I was pretty much restricted to the Borland manuals, but I had a hard time with them.

In the end, the way I really learned the language was by deciding that I wanted to do something with C, and beating my head against the wall, and the function reference alternately, until I got it done.

In retrospect the programming was terrible. No design, the whole program was in the main() function, every thing that I did was done the least efficient possible way, but the program worked, and was widely used within the National Space Society for several years.

Books can hurt you, too. I don't know how many times I have bought a book about the programming language and version that I have, but even the first example in the book won't compile, or doesn't work as expected. At that point it is natural to assume that you are the problem because the source code is in a published book, so it must be right. Not true, but I'm sure that a number of prospective programmers have given up on that career path because of poorly written books.

Lately, my gripe about books with example programs is that a lot of them seem to really focus in on graphics. Well, graphics will never be something that I spend a lot of time on, because I'm partially color blind.

So my advice is to develop your own test questions for yourself. Use books to learn the IDE and standards for the language. Keep a function reference with you at all times, and remember that programming is supposed to be enjoyable as well as useful.

Push your limits as hard as you can. If you see something that somene else has done, even in another language, and it looks pretty cool, try to duplicate it. It's a hard way to learn, and can be very frustrating, but you will remember your mistakes a lot longer than anything you read in a book.

It's even better to decide that you want to do something that no one else is doing. Maybe it has already been done, but you can't know that. I decided to write implementations of the Newton-Raphson method for causing rapid convergance of solutions of two equations with two unknowns. I enjoyed that. Then I wrote a program that calculates the filled volume of a horizontal cylinder, with hemispherical end caps, using the Riemann Sum method. That turned out to be a pretty useful program and both are available, free, at Planet Source Code. To make things more interesting, I did them in Visual Basic.

Recently, even though I have Mickeysoft Visual C++ 6.0, I downloaded the free version of Borland C++ 5.5. The one that doesn't come with an IDE. And I started a C++ refresher course. I even bought a few books. The problem is that there isn't anything I want to do that absolutely requires C++, so that project is progressing at a snail's pace.

To sum it up, it is hard to become a competent programmer if there isn't a program that you WANT to write.
Apr 7 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Bozo Schmozo | last post by:
Can someone please recommend some good books on developing web sites (pretty much from scratch) running PHP and the necessary/usual components required, such as MySQL, Apache and etc? As well,...
1
by: Timberwolf | last post by:
Hi everyone I'm a newbie to the world of Perl. I'm especially interested in the web and CGI programming with Perl. Can anyone recommend some good books or tutorial websites about these...
2
by: John G. | last post by:
I've been using Freway 3.5 Pro to design websites. This program uses tables for positioning as well as gifs to force content into position. The HTML and CSS it generates are not accessible as you...
4
by: Bozo Schmozo | last post by:
Can someone please recommend some good books on developing web sites (pretty much from scratch) using ASP and the necessary/usual components required, such as XML, C# and etc.? As well, if I...
2
by: prabhu | last post by:
I would like to learn more in java scripts so can u suggest some good books in java scripts which contains some good example also
7
by: johnny_xia | last post by:
Dear All, I am new to C# and looking for some good books for a start. I have been working on Windows Platform for several years and have extensive experience in C++ and COM. I decide to shift to...
3
by: beachboy | last post by:
hi all, would you pls advise any good books for learning C# (web related back-end programming) with java background? thanks for your suggestion. beachboy
7
by: gamerfry | last post by:
I want to learn C++. I already know a decent amount of web programming and have tried many books but all of them including the ones that say beginning or beginners all require expert knowledge or...
26
by: puzzlecracker | last post by:
It'd be interesting to compare the learning practices of c++ practitioners. I'll start with mine The C++ Programming Language C++ Primer Effective C++ More Effective C++ Effective STL The...
7
by: themadme | last post by:
Can anyone please suggest any good books that teach how people to do advance programming. For example - teaches how to construct and program something Efficiently, more detail into stl's and other...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.