工程项目当前路径

#include <direct.h>

int main( )
{
char buffer[64];
_getcwd(buffer, 64);
std::cout << buffer << std::endl;
return 0;
}

参考

1.获取当前路径;