/ Published in: C++

Show Current Path
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <direct.h> #include <stdlib.h> #include <iostream.h> int main() { char CurrentPath[_MAX_PATH]; getcwd(CurrentPath, _MAX_PATH); cout << CurrentPath << endl; return 0; }
URL: http://en.wikibooks.org/wiki/C%2B%2B_Programming
Comments
