Can anyone recommend a book for making the transition from C to C++? I’m very familiar with C programming and have exposure to OOP from playing around with Java. So, this would ideally be a concise text that concentrates on moving to C++ and covers things like syntax, constructors, inheritance rules, etc.
This is a wierd one, but there is "Expert C programming" by Peter Van Der Linden. His last chapter is "You know C, so C++ is easy!" This is really a basic introduction, from there you need a real C++ book.
I started with "Teach Yourself C++ in 21 Days". I liked it, but some people hate it.
But the thing is - The Arduino won't run most standard C++ programs because it doesn't have a keyboard, display, or disk storage. And, most of the Arduino library is unique and it won't run on a regular computer. Plus, I haven't seen anyone doing object oriented programming on the Arduino.
So, C/C++ on the Arduino is almost a different language with the same basic structure & rules as standard C or C++.
I would assume so, since all the Arduino library source code I have looked at uses Class and Object constructs.
As I said, I think I just need a primer on C++ structures and rules. Figured that would be easier than wading through a large book with chapters on “Hello World”, loops, conditionals, pointers, etc. Guess I’ll just grab the Barnes and Nobel gift card that I got for Christmas and go browse the shelves.