I googled for ways to get a directory listing, and from the results i saw, it looked like it was going to be a pain in the butt in c++. Looked like you cannot do it for one code for any OS? So what is confusing me, is if this section of code is suppose to be for linux, why is it working in windows too? I tried it in linux and it gave a directory listing, i tried it in my windows virtual box and it also gave a directory listing? So is dirent.h file standard for windows now too? IF so it now safe to assume that systems will have dirent.h file?
nothing wrong with the boost method. I was looking for the most portable method without using a 3rd party library if at all possible. I steer clear of Microsoft software anyways so Visual C++ is not applicable to me.
nothing wrong with the boost method. I was looking for the most portable method without using a 3rd party library if at all possible.
It isn't.
You need to choose between the Boost approach (which is very prob going to end up as part of C++14) or one of the platform specific solutions (POSIX or Windows, with MinGW providing ports of the POSIX calls.)
You need to choose between the Boost approach (which is very prob going to end up as part of C++14)
hmm interesting. I thought since it was from 1998-2011 since last "update", there wouldnt be one till 2022 or something. I wasnt aware of one upcoming in 2014
You need to choose between the Boost approach (which is very prob going to end up as part of C++14) or one of the platform specific solutions (POSIX or Windows, with MinGW providing ports of the POSIX calls.)
Andy
I dont know this thing you are talking is there any article that can explain what boosting and 3rd party library is??
article that can explain what boosting and 3rd party library is??
not boosting. boost. its a c++ api that is like the swiss army knife of libraries. it has almost everything you need but it is very big
http://www.boost.org
third party libraries are libraries/apis you download that help you program in a certain way easier. these include sdl, sfml, opengl, boost, allegro