Learning C++

Hi!

I’m trying to learn C++ to work on applications for Haiku and Windows.
I’ve been running through https://www.learncpp.com/ and was wondering if anyone here has any other learning resources.

Thank you in advanced!

There is “Learning to program with Haiku” by Jon Yoder, about half of the lessons are about learning C++ in general, the rest is about Haiku specific stuff. You can find it here:
https://www.haiku-os.org/development/learning_to_program_with_haiku

Hope that helps. Have fun with C++ and Haiku :slight_smile:

Even though this is a bit outdated, this BeOS book on programming was made by O’Reilly: https://www.oreilly.com/openbook/beosprog/book

O’Reilly is generally known for their collection of programming books, so this book should be quite solid on its teaching.

i am currently reading a book on c++. c++ primer plus sixth edition, stepped prata. but, i also use google groups.
comp.lang.c++ to ask a question. some seem really nice and as long as you are putting in the effort and not doing college homework :slight_smile: they jump right in and try to help you understand.

current in chapter 4. the author’s discussion on pointer actually is understandable, well long and slowly introduced and covered. i think there is way more to follow on the subject, but so far so good, really.

i like c++ how to program too, deitel and deitel, but they seem to use the same text, words, format and problems for all their books, just different language. easy read too.

good luck, hope to see you on comp.lang.c++ as i will learn from your questions too.

http://old.besly.de/menu/search/archiv/artikel/books_eng.html

As far as I can tell, O’Reilly books are just a paper edition of the Be Book, which is freely available online in a more up to date version.

True, but they also throw in some example programs and some extra explanations.

1 Like

I’ve had decent luck with Sololearn on Android. You can save courses offline, which I like because I don’t like the social platform they provide. My favorite programming book is Sam’s Teach Yourself C in 21 Days. The book is slightly outdated but really cheap used. They also offer a C++ version.

From experience, I recommend The C++ Programming Language (Fourth Edition) by Bjarne Stroustrup. It is quite a large book, but I feel the learning outcomes are worth investing the time.

I also suggest you have a look at this C++ book guide from stackoverflow

Not necessarily only for the original poster:

Bjarne Stroustrup has a beginner programming book called Programming Principles and Practice Using C++. If you haven’t programmed before, start there before looking at his other book called The C++ Programming Language, which is about learning the details of the C++ programming language rather than beginner programming. That is also the reading order which Stroustrup recommends. Both are big books. If taking on such a large book seems too daunting right now, you could learn C first and come back to C++ later, since it is a smaller language and most everything that you learn about C will be applicable in C++. A small and easy C book to begin learning programming with is C Programming Absolute Beginner’s Guide by Greg Perry, which should take about a month to work through if you can work at it every day, where Stroustrup’s book will probably require 6 months or more to work through. Perry’s book focuses on familiarizing reader’s with fundamentals in programming concepts and using the C programming language. Stroustrup’s book does the same using C++ along with exercising the beginner’s brain in problem solving.

I am not a programmer, just a fellow programming learner and appreciator of good technical books, of which there seems to be so few among so many. I have worked through about half of Stroustrup’s beginner programming book, and it is excellent. Perry’s book is also good, although considerably less challenging for beginners in programming.

Also, getting advice for good instructional books can be tough going on the internet, which is why I piped in here. A good instructional book should be appropriate for the targeted readership (and tell you who the book is written for in the preface), should wholly or mostly stand on it’s own without having to look up things in other resources’s (completeness) in order to do the required work, and should be well edited. Both of the above books are well targeted for beginner programmers and do stand on their own, although solutions to exercises in Stroustrup’s book are provided on his website instead of in the book. Stroustrup’s book is very well edited with some errors here and there (there is an errata on his website), and Perry’s book has some superficial errors throughout which shouldn’t be a problem.

1 Like

You may wish to try the Paladin IDE and its sample C++ projects.

At the moment they are a bit basic, but in future I hope to add more. If you have any suggestions for particular samples or project templates, please log an enhancement request here: https://github.com/adamfowleruk/Paladin/issues

You can also use Paladin’s source code as a learning reference, although I’ll be the first to admit it needs a good clean up! There should be examples for most GUI controls in there though, along with using BMessage in anger.

In order to avoid too much duplication about code samples, I should mention https://github.com/drcouzelis/HaikuApiExamples