How do I get the filenames in a directory if the directory/folder was typed on the command line?
How do I get the filenames in a directory if the directory/folder was typed on the command line?
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Getting directory information depends on your compiler/OS. You can always use it combine with system to pipe the information to a text file and read it that way. Not a great way to do it, but it'd work. Search the past messages, I'm sure there have been posts on directory listing here in the past.
Quzah.
Hope is the first step on the road to disappointment.