I don't think there's a specific C++ interface but you can certainly use the C mechanism.
At the top of the file, add the line [code]#include <stdlib.h>[/code>
Then, to get the environment variable:
char * var = getenv("HOME");
with the variable name you want; $HOME is the user's current directory.)
Hope that helps,
— Robert J. Lee