using directories

how do u use directories in c++ ive tried using opendir and after downloading the required .h files all i got was alot of errors. so how would I use directories in c++?
Topic archived. No new replies allowed.