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

    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
        • 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

          R Offline
          R Offline
          raddevus
          wrote on last edited by
          #22

          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)[

          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

            S Offline
            S Offline
            steve tabler
            wrote on last edited by
            #23

            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.

            1 Reply Last reply
            0
            • F Fly Gheorghe

              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 Offline
              L Offline
              Lost User
              wrote on last edited by
              #24

              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...

              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

                S Offline
                S Offline
                SeattleC
                wrote on last edited by
                #25

                I wouldn't say the style is the same as K&R, but *I* learned C++ from the book C++ FAQs.

                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

                  T Offline
                  T Offline
                  TheBugman
                  wrote on last edited by
                  #26

                  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!

                  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

                    J Offline
                    J Offline
                    jschell
                    wrote on last edited by
                    #27

                    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'.

                    1 Reply Last reply
                    0
                    • F Fly Gheorghe

                      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.

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

                      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

                      1 Reply 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