We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a83b5cf commit 0aed499Copy full SHA for 0aed499
get_current_dir.cpp
@@ -0,0 +1,10 @@
1
+#include <filesystem>
2
+#include <iostream>
3
+
4
+// https://stackoverflow.com/questions/875249/how-to-get-current-directory
5
6
+int main() {
7
+ std::filesystem::path cwd = std::filesystem::current_path();
8
+ std::cout << "current dir: " << cwd << std::endl;
9
+ return 0;
10
+}
0 commit comments