I have to learn c++ for my new job. What are some good projects to do to learn it?
Any good resources for learning how to write it well? I just got a copy of effective c++
>>54382826
Write a wrapper around the pthreads library (e.g. a Thread class, which you can derive from to do stuff).
Then use your wrapper for some parallel programming. A crappy n by n matrix multiplication is a good, ugly loop you can parallelize. Or just do a parallel fizzbuzz, who the fuck cares.
The thing you should understand about C++ is that it's really just C structs with a bunch of nice protection, virtual methods, and ugly ass templates.
The pthreads API is a classic object-ish interface, and if you can understand how structs in the pthreads API works, you will understand better how C++ actually works and why people make fun of it for being C with bullshit attached.
>>54383070
>you will understand better how C++ actually works and why people make fun of it for being C with bullshit attached
It's not bullshit. Especially modern c++
>>54382826
C is shit compaired to ++
a string in c is like
char [7] = "string";
in c++
string = "string"
>>54385930
Yeah, I suppose.
>>54382826
Chip8 emulator
>>54385930
const char * str = "you're a nigger"