The benefit of C++ is that you can fall back to C style coding. i.e. instead of using loops & the new/delete operators, I’m just going to use malloc() & free().
Oh, calloc() is a thing.
realloc() is a thing too.
But that doesn’t mean that you have to use C functions in C++ if you want to allocate memory without calling a constructor. void ::operator new(size_t size) is still a thing, you know.
And C++ has a placement new, which is a great thing for memory pools.
Lecture 3 - Algorithms & Analysis: Brute Force
Copyright 2013 RMIT - Shane Culpepper
Note to self: Learn to focus on important things.
pool party!!! more like thread pool party haha am i right
I’ll invite you to my memory pool party!
Yes, Metro interface and WinRT, I’m talking about you…
Your design made a module I was developing unusable for Metro applications.
Why would you kill ALL IPC methods!? Initially I was using sockets, but you can’t connect to localhost anymore from WinRT, neither can you use named pipes.
I’ve been struggling with this problem for quite a while! At first I was thinking about in-place and one-go method. But the code for that would become unreadable and hard to understand.
The best thing programmer can do is split the problem into smaller pieces.
So by doing that, much better idea was born!
At first you wanna transpose the matrix (flip around the main diagonal) to rotate counter-clockwise and around another diagonal to rotate clockwise.
Then just reverse each column and that’s it!
OK I DONT KNOW IF YOU GUYS HAVE NOTICED ON GOOGLE BUT THERE WAS THIS THING
SO I CLICKED IT RIGHT
AND IT BROUGHT ME TO THIS PAGE AND I CLICKED THE FUCKING LINK
AND I CLICKED SMELL
AND THEN I PUT MY FACE ON THE SCREEN RIGHT
AND IT DIDNT FUCKING WORK SO I CLICKED NEED HELP
AND IT BROUGHT ME TO THIS SHIT STAINED PAGE
FUCK YOU GOOGLE
Best joke ever!