|
It would be better to use the tin foil as a hat to keep the space aliens from controlling your mind.
|
|
|
|
|
This is not a programming question.
Very odd post - I am actually asking for opinions...
Please share your actual experience and tell your opinion
(in few words, do not want to take too much of your time )
what you recommend as
C++ learning book ( no u-tube, PLEASE ) written in
K&R style.
I mean "meat and potatoes" and minimal "click this /click that"
(got one already ) kindergarten picture book of 500 + pages.
Cheers
|
|
|
|
|
C++ is a far bigger language than C, so it can't be done in a small book. I learned it quite a while ago, so I can't give you a current recommendation. But the reviews of this book (by the inventor of C++) sound like it could be what you're looking for:
https://www.amazon.com/Tour-C-Bjarne-Stroustrup/dp/0136816487[^]
|
|
|
|
|
The direct comparison to K&R would be C++ Programming Language by Bjarne Stroustrup This is a 1300+ page book, so it's not something you can get through in an couple of days, which gives you some idea of the difference in size between C++ and C. The book is also more a reference, whereas K&R is almost tutorial in approach.
Alternatively, there's Accelerated C++ by Koenig and Moo That dives straight into the C++ programming with STL. I found it very aproachable and easy to read. My only concern with this book is that it is a bit dated, having been published in 2000, with no newer editions having been published, so additions from C++11...C++23 are not covered (shame!)
I know you don't want YouTube suggestions, but I think C++ Weekly with Jason Turner is worth a look. It's not a course, but he does cover some of the ins and outs of C++. Most videos are less than 20 minutes long, and can provide some insights as to why, for example, you might want to avoid using std::endl .
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown
|
|
|
|
|
I was about to recommend Accelerated C++, despite being out of date. It's really good at getting someone up to speed quickly.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I already recommended that one - great minds eh?
|
|
|
|
|
You know the rest of that, right?
But it's good to know AC++ is now available online. I did not know that. Thanks.
"A little song, a little dance, a little seltzer down your pants"
Chuckles the clown
|
|
|
|
|
It's such a good book despite its age, so I'm not entirely surprised.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
k5054 wrote: This is a 1300+ page book,
Sadly it appears that I no longer have the first edition. But it was quite a bit shorter.
I have the Annotated version which is only about 500 pages. In there Templates are 'experimental'.
|
|
|
|
|
Essential C++ [Book]
Looks like not many C++ authors are updating their books, but this is a consise introduction to C++. Covers a number of important topics, but dated 1999, previous millennium.
|
|
|
|
|
|
You do realize this dude is a narcissist? Yeah I know, what are the odds online... 95%? But, if you give him an inch he's gonna be right back to asking programming questions in the lounge again. He don't care. He's playing a game to see just how weak we are.
Jeremy Falcon
|
|
|
|
|
Yes, I am well aware of what he is, but I would use a different word. I was instrumental in getting him kicked off the site for abuse a year or so ago.
|
|
|
|
|
Richard MacCutchan wrote: I was instrumental in getting him kicked off the site for abuse a year or so ago. Plot thickens.
Jeremy Falcon
|
|
|
|
|
(curious) Does style (k&r) really matters ?
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
I've used "The ARM" (https://www.amazon.ca/Annotated-C-Reference-Manual/dp/0201514591[^]. It is very much in K&R style: only "meat and potatoes" without much "fluff".
Just like K&R, it is a bit dated now. It will serve you well to get the basic concepts but for templates and standard library stuff, you would need another book.
Mircea
|
|
|
|
|
Salvatore Terress wrote: This is not a programming question. It's still in bad taste given the fact you obviously can't be trusted.
Salvatore Terress wrote: Please share your actual experience and tell your opinion Why the fudge are you bolding crap? Do you honestly think we can't tell what you mean by that?
Salvatore Terress wrote: C++ learning book ( no u-tube, PLEASE ) written in One could argue, given who you are, this still would've been better asked in the C++ forum. What you don't realize, personally, I'll never answer a question you ask... never. And I doubt I'm the only one.
Jeremy Falcon
|
|
|
|
|
Shouldn't that be,
Quote: I'll never answer a question you ask... never.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Ha ha ha ha... fo sho.
Jeremy Falcon
|
|
|
|
|
Never say never, Jeremy.
|
|
|
|
|
*lol* what now is more important...
a.) Understanding the language concept, syntax, ...
b.) Indentation style
In case you decide for b.) you should looking for another job
|
|
|
|
|
Rather than K&R for C++ you should be inquiring of Harbison & Steele for C++.
|
|
|
|
|
We should take the opportunity and praise the book K&R. After 36 years since the publication of the 2nd edition (1988) and 46 years since the 1st one (1978), it is still a masterpiece of programming that every young programmer should read carefully.
The importance of this book and of the "C" language to everithing that followed (C++, java, C# etc.) cannot be overestimated.
Ever wonder why all books write key words with proportional font and the rest of text with true-type?
K&R is a small book, but because it is very concise: every word counts - I would say every comma counts. Take for example the phrase that describes how to interprete a missing "else" from a nested "if" sequence: "...by associating the else with the closest previous else-less if."
One should read this book slowly and carefully, then run all the programs inside, solve all the exercises, and then read the book again.
Code examples are true marvels, from elementary to complex ones, like the Unix file implementation or the memory allocator.
The C reference manual and the description of the standard libraries af the end of the book are also splendid.
One should also consider the "C Problem Book" with answers to exercises.
You will never find a truly similar book for any other language or topic.
Rest in piece, DMR.
|
|
|
|
|
My oldest grand kid got bitten by technology , he is in rockets now, and at one point inquired about C.
I have given him one of my copies of K&R with this advise - read it as a novel FIRST - from cover to last cover... then pick a project of interest and follow the book code.
I am not sure he was OK with that advise, he dabbled in Python afterwords...
|
|
|
|
|
Greetings Keng Regards
May I suggest Harbison & Steele as an addition to the preferred C tomes. It is unfortunate they did not write a C++ reference.
Best Wishes
|
|
|
|