is it possible, in C++, to get the current RAM and CPU usage? Is there a platform-indepentent function call?
Not directly.
But you can use a library that abstracts the OS (such as ACE). Though this might by a bit heavy if you just want CPU and Memory.