K&R for C++?
-
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.
:laugh:
"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
-
You do realize this dude is a narcissist? Yeah I know, what are the odds online... 95%? :laugh: :laugh: 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
-
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
-
The direct comparison to K&R would be [C++ Programming Language by Bjarne Stroustrup](https://www.amazon.com/C-Programming-Language-4th/dp/0321563840/ref=tmm\_pap\_swatch\_0?\_encoding=UTF8&dib\_tag=se&dib=eyJ2IjoiMSJ9.Tv30bdzN3NEUFkE9mMZcbv7Uq977PyeX4qFUOkHf-LFRSnCxzVRVTfEG1kZEcXJpmCprG7UeIDkRSxFu11SG5c074vM4ATSV0NmG8TZ81HHt2DU6ySUmHkC7ztX5A9xp1mK-GG-oACmaxzB1Z9OjagpaW7RWz8uJm\_QjiqJGfqMvnsVnBGTD2M3NrrK-ZqY1MBIMkMII0qjapvrnxFURdZ-L7F\_0OdtGyxtkw3HQVnZWAnhCRgPBgwdDnD9WqBb\_GYs\_0vMhW6\_LbsqIAIjot7ysGQ9pHzCk07HS1I5M4bg.bbU0w\_0V8DnR4gB7soNLwMfucS6cjQxSAX1OU21MqaE&qid=1714016219&sr=8-2) 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](https://www.amazon.com/Accelerated-C-Practical-Programming-Example/dp/020170353X/ref=sr\_1\_1?crid=35QVI1SP8UPAT&dib=eyJ2IjoiMSJ9.qHVGFkf6z2JKkuA8x6MP\_iAvzmak75MWZZnpM3dq0S84OblL2q2lI9Ga02JFFDCbzJVeHXpqjSejAaltb23P\_WGamxDIDp9ab-YagyPDBBGxk4GK2YlPSI\_5pdKNAoF8kzohslH8cst\_XMMO6rSIDzKZiqdHDkUD6gaT7VrSPU\_7ZBiKIusz7OmF5JBvSoxnlBM1tp3bqnU8FP67JpFtQnaQegYBvekE-dt9afPb0mw.6OePxD\_XdO-NmWKSVmNzDMNy\_OvkZdY1nanyGVL7hww&dib\_tag=se&keywords=accelerated+c%2B%2B&qid=1714016501&sprefix=accellerated+c%2B%2B%2Caps%2C104&sr=8-1) 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](https://www.youtube.com/playlist?list=PLs3KjaCtOwSZ2tbuV1hx8Xz-rFZTan2J1) 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 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
-
Shouldn't that be,
Quote:
I'll never answer a question you ask... never.
:laugh:
"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
-
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. :omg:
Jeremy Falcon
-
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
-
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
-
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
Rather than K&R for C++ you should be inquiring of Harbison & Steele for C++.
-
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
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.
-
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
The one I've read recently is The C++ Crash Course (no starch)[^] It is really well written and is written like the K&R C. The other one I've also dipped into which is also written like K&R C is: MOdern C++ For Absolute Beginners (APress)[
-
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
The book used when I took my first formal course in C++ at a university was: "Problem Solving With C++" 'the Object of programming' by Walter Savitch ISBN 0-8053-7440-X Along with this, my professor had daily handouts, usually 1-4 pages long, of typed material about the language, and he went over the notes using his overhead-projector, and pointed out a lot of things. The professor retired a couple of years later, and the university's bookstore started self-publishing his classroom notes. The other professors all taught using different materials and texts, and this was just before Java got a foothold.
-
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...
-
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
-
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
There is a series of books called Sams Teach Yourself <_Subject HERE_> in 24 hours. It means 1 hour each day, but you can set your own pace. I have found it very helpful in previous times, from C# to SQL. I searched just now and I found an online version of it. Sams Teach Yourself C++ in 24 Hours: Writing Your First Program[^] Good luck!
-
The direct comparison to K&R would be [C++ Programming Language by Bjarne Stroustrup](https://www.amazon.com/C-Programming-Language-4th/dp/0321563840/ref=tmm\_pap\_swatch\_0?\_encoding=UTF8&dib\_tag=se&dib=eyJ2IjoiMSJ9.Tv30bdzN3NEUFkE9mMZcbv7Uq977PyeX4qFUOkHf-LFRSnCxzVRVTfEG1kZEcXJpmCprG7UeIDkRSxFu11SG5c074vM4ATSV0NmG8TZ81HHt2DU6ySUmHkC7ztX5A9xp1mK-GG-oACmaxzB1Z9OjagpaW7RWz8uJm\_QjiqJGfqMvnsVnBGTD2M3NrrK-ZqY1MBIMkMII0qjapvrnxFURdZ-L7F\_0OdtGyxtkw3HQVnZWAnhCRgPBgwdDnD9WqBb\_GYs\_0vMhW6\_LbsqIAIjot7ysGQ9pHzCk07HS1I5M4bg.bbU0w\_0V8DnR4gB7soNLwMfucS6cjQxSAX1OU21MqaE&qid=1714016219&sr=8-2) 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](https://www.amazon.com/Accelerated-C-Practical-Programming-Example/dp/020170353X/ref=sr\_1\_1?crid=35QVI1SP8UPAT&dib=eyJ2IjoiMSJ9.qHVGFkf6z2JKkuA8x6MP\_iAvzmak75MWZZnpM3dq0S84OblL2q2lI9Ga02JFFDCbzJVeHXpqjSejAaltb23P\_WGamxDIDp9ab-YagyPDBBGxk4GK2YlPSI\_5pdKNAoF8kzohslH8cst\_XMMO6rSIDzKZiqdHDkUD6gaT7VrSPU\_7ZBiKIusz7OmF5JBvSoxnlBM1tp3bqnU8FP67JpFtQnaQegYBvekE-dt9afPb0mw.6OePxD\_XdO-NmWKSVmNzDMNy\_OvkZdY1nanyGVL7hww&dib\_tag=se&keywords=accelerated+c%2B%2B&qid=1714016501&sprefix=accellerated+c%2B%2B%2Caps%2C104&sr=8-1) 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](https://www.youtube.com/playlist?list=PLs3KjaCtOwSZ2tbuV1hx8Xz-rFZTan2J1) 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
-
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.
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