0

So I am working with a simple C++ console program, and my goal is to print out the file path of the program I am working on into the console. I've tried using the #include <filesystem> but I can't get it to work. If someone can show be a simple main program just to write the file path of the file I am working on.

  • There is a full example right here: [https://en.cppreference.com/w/cpp/filesystem/current_path](https://en.cppreference.com/w/cpp/filesystem/current_path) Make sure that your compiler supports at least the 2017 (c++17) standard. – drescherjm Oct 15 '22 at 22:26

0 Answers0