Sunday, September 19, 2010

C++ program to count number of objects in a particular Linux directory

Programmer Question

I'm attempting to write a program in Linux using C++ that counts the number of files and folders in a user specified directory, but the more I read, the more confused I get. I'm new to C++ and to programming in general, and I understand that I have a big hurdle to vault at the start, but I'm not entirely sure where to start reading on this one. I've read a bit about forking processes and system calls, but if someone were to briefly outline the process I have to go through to achieve this, then I can do more in depth reading on the various functions myself.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails