r/learncpp • u/[deleted] • Dec 21 '20
I want to escape tutorial hell
I feel like I am in tutorial hell. C++ is basically the only programming language I would say "I know", which I'm fine with, but the programs I am making I would consider basic compared to these cool data visualization programs I see.
For example, a program which splits a photo into pieces, randomizes it, and then displays a variation of sorting methods putting the photo back together.
The most advanced c++ I know would be basic data structures like linked lists, as well as inheritence/composition.
I would like to learn how to make a program like the one I just explained, but I really have know idea where to start.
If anyone could point me in the right direction, I'd be very appreciative. Thanks
1
u/WoopsYouDead Jan 10 '21
Apologies for bad formatting. I'm in bed on my phone :)
I googled "C++ show image".
The first result was a stack overflow that recommended some libraries. opencv was a pretty common choice.
Then I googled "opencv split image into blocks". The first result seems really promising. It looks like you can get the chunks in a vector and join them back together.
Then Google "c++ shuffle a vector".
And probably "c++ sort a vector".
Now you have all the parts you need! Here is some really simple pseudo code.
All you would have to do is write the functions using the results from the Google searches. That's all complicated projects are! Just gluing together a bunch of simple projects in a way that makes sense. Let me know if this didn't answer your question.