Customize your cookie preferences

We respect your right to privacy. You can choose not to allow some types of cookies. Your cookie preferences will apply across our website.

We use cookies on our site to enhance your user experience, provide personalized content, and analyze our traffic.

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
I have to learn c++ for my new job. What are some good projects

You are currently reading a thread in /g/ - Technology

Thread replies: 7
Thread images: 1
File: 1315275660940.jpg (10 KB, 171x251) Image search: [Google]
1315275660940.jpg
10 KB, 171x251
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"
Thread replies: 7
Thread images: 1

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at imagescucc@gmail.com with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK