is it possible, in C++, to get the current RAM and CPU usage? Is there a platform-indepentent function call?
If that is still the case please check:
http://sourceforge.net/projects/cpp-cpu-monitor/
It gives you an example how to get CPU and RAM usage of a Linux (tested on Debian and CentOS) and a quite simple instruction of how to install.
Please feel free to ask if you have any questions regarding this small project.