is it possible, in C++, to get the current RAM and CPU usage? Is there a platform-indepentent function call?
No, there isn't, not in the standard.
If you truly need this information, you will have to write platform-specific #ifdefs or link against a library that provides it.