>It stops being professional as soon as a beginner tries building an actual program over it.
Fair enough. But sorting and searching forms the fundamental basis of much of computer science. It's far, far easier to write good code that can do this at industrial-scale in C++ than in C. The example I gave above can easily & effectively scale out to hundreds of billions of foos
on a good server with just one parameter change:
std::sort(std::execution::unsequenced_policy, foo.begin(), foo.end());
Not quite so trivial to pull that off well in C, I'm sure.
>Wouldn't the correct choice of action to become antiquated with C++'s predecessor?
Not in the eyes of many professional developers, including myself. As a group we've had to deal with absolutely awful code produced by amateurish C 'developers' and I can tell you it's not a pleasant experience in general. Well-written C++ code is not only much, much easier to maintain than the code produced by these types, but it also usually performs much better as well.
>You are saying C++ is a better language for a beginner?
Than C is? Yes, that's exactly what I'm saying, if that beginner is serious about becoming a competant developer in the areas that C & C++ are typically used for.
>I kind of find that comment laughable in it's own way
It seems to me you've been conditioned to do so Anon. A novice would have no such preconceptions ofc.
>but is it not significantly harder than C to get a grasp on?
Apples and oranges, but in large part no. I've already outlined a couple of good reasons why here.
I'd also recommend you read chapter 27 from the textbook mentioned below for a much more thorough treatment of this exact topic by it's author. The fundamental burden that C places on the novice is putting the cart before the horse. You more or less have to become a guru of exceptional competence before you can create even reasonably non-trivial systems in C. With C++, you can begin to toddle towards doing so even as a novice, as I mentioned.
>What book(s) would you recommend?
I only have one. Bjarne Stroustrup's PPP2. For the novice who is serious about becoming a professional developer, it's literally the best freshman programming textbook bar none. It doesn't matter what language we're even talking about here, this is simply the best book in existence for the sober beginner IMO.
Once you know the ropes, then I'd recommend Tour++ by the same author, or pretty much any book on the list
>Is C++ Primer (5th Edition) by Stanley B. Lippman a good choice?
>Beginning C++ Through Game Programming 4th ed?