What's the fastest way for me to learn the basics of C++? I already know Java and Python.
So far I've looked at learnxinyminutes.com and the book Accelerated C++. Is there anything else?
tour of c++
learn everything you can about move semantics and smart pointers and operator overloading and passing by value vs reference
>>58552889
Honestly, read through beginner docs so you make sure you know what C++ has to offer and its syntax.
Java is a wannabe C++, and has more features and a different approach. It'll help you more to learn C++. Python is so abstracted that it's hard to compare it with C++ directly.
Just go to a site like this:
http://www.cplusplus.com/doc/tutorial/
Read through it. See that C++ doesn't support newfangled shit like foreach or dictionary data types and shit. It's really basic compared to lots of stuff today. However, that basic nature makes it incredibly powerful. The only step further for performance would to be to write in straight assembler.
pro-tip: ignore unemployed geezers like>>58553635 who still claim in the current year that "C++ doesn't support newfangled shit like foreach"
Try to find resources that focus on C++14 or C++17, as those revisions to the language made it a bit easier to learn (and a lot more tolerable to work with). This book is breddy gud:
http://shop.oreilly.com/product/0636920033707.do
>>58553320
I can second this, though I'll add I feel stupid having bought this seeing as it's basically just an abbreviated excerpt of a single chapter from the Stroustrup's real book on C++ which costs $10 more.
>>58553635
>foreach
Range based for has been in since C++11
>dictionary data types
...have been in the standard library for ages.
>>58553635
I was fucking around with C++ on HackerRank and LeetCode for a while. Local compile errors make scored web platforms appealing if you are a n00b (on maybe not on Linux). This is fine for Project Euler problems were all code is in a single text file but doesn't really scale and your learning experience can easily devolve into a pissing match with a bunch of IIT students.
The stuff you can't easily learn online are the memory management, version control, and numerical analysis issues associated with real work. You can easily go from Hello World! to pathological gradient descent problems in Armadillo within a month. If you only have /g/ and StackOverflow for support then studying a complied, legacy, science-leaning language would be similar to ripping out pubic hair one filament at a time.
>>58553736
Shows how long I've been out of the game. C++11 does indeed have a foreach equivalent, it seems.
A STD lib class != native data type. C++ has no native data type like a dictionary.
>>58553841
>C++ has no native data type like a dictionary.
Why would you think something like this ought to be built into the language itself?
>>58553976
Because the moron is an idiot.
>>58552889
Discovering Modern C++: An Intensive Course for Scientists, Engineers, and Programmers by Gottschling