Usually when you call a function on null object, a program crashes. But if it doesn ‘t reference any member variables, the function will be called and the program won’t crash.
So this problem arose while I was doing some programming and I found the solution to be rather cute. I’m going to write up a proof of the algorithm because it is so cute. The problem is: given a point in the plane, is it contained within a given polygon? This is a very easy question for a person…
Not too long ago I had to write a Windows service in C++. Now, C# has a template for that that one can use and write a service quickly. But C++? Yeah, you have to build that one up from the ground.
Inspired by C# ServiceBase class, I created my own C++ ServiceBase class that helped me quickly write a service that would track users logging on and off the system, as well as locking/unlocking the PC.
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.