Code: Select all
#include <string>
#include <iostream>
#include <experimental/filesystem>
using namespace std;
namespace fs = std::experimental::filesystem;
int main(int argc, char *argv[]) {
string path = fs::current_path();
for(auto & p : fs::directory_iterator(path)) {
cout << p << endl;
}
int n;
cin >> n;
}