Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. K&R for C++?

K&R for C++?

Scheduled Pinned Locked Moved The Lounge
questionlearningc++discussion
28 Posts 17 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    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

    Greg UtasG Offline
    Greg UtasG Offline
    Greg Utas
    wrote on last edited by
    #2

    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[^]

    Robust Services Core | Software Techniques for Lemmings | Articles
    The fox knows many things, but the hedgehog knows one big thing.

    <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
    <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

    1 Reply Last reply
    0
    • L Lost User

      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

      K Offline
      K Offline
      k5054
      wrote on last edited by
      #3

      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

      H J 2 Replies Last reply
      0
      • L Lost User

        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

        A Offline
        A Offline
        Amarnath S
        wrote on last edited by
        #4

        [Essential C++ [Book]](https://www.oreilly.com/library/view/essential-c/0201485184/) 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.

        1 Reply Last reply
        0
        • L Lost User

          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

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #5

          You can download this one free: Accelerated C++ - Andrew Koenig & Barbara E. Moo.pdf[^]

          J 1 Reply Last reply
          0
          • L Lost User

            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

            M Offline
            M Offline
            Maximilien
            wrote on last edited by
            #6

            (curious) Does style (k&r) really matters ?

            CI/CD = Continuous Impediment/Continuous Despair

            1 Reply Last reply
            0
            • L Lost User

              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

              M Offline
              M Offline
              Mircea Neacsu
              wrote on last edited by
              #7

              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

              1 Reply Last reply
              0
              • L Lost User

                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

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #8

                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

                J L 2 Replies Last reply
                0
                • L Lost User

                  You can download this one free: Accelerated C++ - Andrew Koenig & Barbara E. Moo.pdf[^]

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #9

                  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

                  L 1 Reply Last reply
                  0
                  • J 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

                    J Offline
                    J Offline
                    jeron1
                    wrote on last edited by
                    #10

                    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

                    J 1 Reply Last reply
                    0
                    • J Jeremy Falcon

                      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

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #11

                      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.

                      J 1 Reply Last reply
                      0
                      • J 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

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #12

                        Never say never, Jeremy. :laugh:

                        1 Reply Last reply
                        0
                        • K k5054

                          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

                          H Offline
                          H Offline
                          honey the codewitch
                          wrote on last edited by
                          #13

                          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

                          L 1 Reply Last reply
                          0
                          • H honey the codewitch

                            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

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #14

                            I already recommended that one - great minds eh?

                            K H 2 Replies Last reply
                            0
                            • L Lost User

                              I already recommended that one - great minds eh?

                              K Offline
                              K Offline
                              k5054
                              wrote on last edited by
                              #15

                              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

                              1 Reply Last reply
                              0
                              • J jeron1

                                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

                                J Offline
                                J Offline
                                Jeremy Falcon
                                wrote on last edited by
                                #16

                                Ha ha ha ha... fo sho.

                                Jeremy Falcon

                                1 Reply Last reply
                                0
                                • L Lost User

                                  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.

                                  J Offline
                                  J Offline
                                  Jeremy Falcon
                                  wrote on last edited by
                                  #17

                                  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

                                  1 Reply Last reply
                                  0
                                  • L Lost User

                                    I already recommended that one - great minds eh?

                                    H Offline
                                    H Offline
                                    honey the codewitch
                                    wrote on last edited by
                                    #18

                                    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

                                    1 Reply Last reply
                                    0
                                    • L Lost User

                                      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

                                      0 Offline
                                      0 Offline
                                      0x01AA
                                      wrote on last edited by
                                      #19

                                      *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 ;)

                                      1 Reply Last reply
                                      0
                                      • L Lost User

                                        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

                                        B Offline
                                        B Offline
                                        BernardIE5317
                                        wrote on last edited by
                                        #20

                                        Rather than K&R for C++ you should be inquiring of Harbison & Steele for C++.

                                        1 Reply Last reply
                                        0
                                        • L Lost User

                                          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

                                          F Offline
                                          F Offline
                                          Fly Gheorghe
                                          wrote on last edited by
                                          #21

                                          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.

                                          L B 2 Replies Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups