How I can get the user\'s temp folder path in C++? My program has to run on Windows Vista and XP and they have different temp paths. How I can get it without losing compatib
#include #include int main(int argc, char* argv[]){ std::cout << getenv("TEMP") << std::endl; return 0; }