Skip to content

Instantly share code, notes, and snippets.

@LessUp
Created June 14, 2022 03:09
Show Gist options
  • Select an option

  • Save LessUp/0784936ce1600826240666f0839619d1 to your computer and use it in GitHub Desktop.

Select an option

Save LessUp/0784936ce1600826240666f0839619d1 to your computer and use it in GitHub Desktop.
[打印当前目录] C++
#include <iostream>
#include <filesystem>
using namespace std;
namespace fs = std::filesystem;
int main() {
std::cout << "Current working directory: " << fs::current_path() << '\n';
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment