현재 디렉토리 경로 알아오기 getcwd함수를 이용하여 현재 경로를 알아올 수 있다. #include #include //getcwd #ifndef _MAX_PATH #define _MAX_PATH 260 #endif int main( ) { char strBuffer[_MAX_PATH] = { 0, }; char *pstrBuffer = NULL; pstrBuffer = getcwd( strBuffer, _MAX_PATH ); return 0; } Software Development/C, C++ 2014.10.20