is it possible, in C++, to get the current RAM and CPU usage? Is there a platform-indepentent function call?
There is an open source library that gives these (and more system info stuff) across many platforms: SIGAR API
I've used it in fairly large projects and it works fine (except for certain corner cases on OS X etc.)