GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 03-Feb-2005, 17:03
ioby ioby is offline
New Member
 
Join Date: Feb 2005
Posts: 2
ioby is on a distinguished road
Unhappy

C++ Shell to display recent directories


I need help to display (in reverse order) the most recent
directories that were in the working directory, in the shell I am working on. Thanks!
  #2  
Old 03-Feb-2005, 17:45
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,218
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold
Quote:
Originally Posted by ioby
I need help to display (in reverse order) the most recent
directories that were in the working directory, in the shell I am working on. Thanks!

What operating sysem? What compiler?

If gcc/g++ for Linux or Windows:

check function scandir() (prototyped in <dirent.h>)

Regards,

Dave
  #3  
Old 03-Feb-2005, 23:16
ioby ioby is offline
New Member
 
Join Date: Feb 2005
Posts: 2
ioby is on a distinguished road
Hey Dave,
The shell I am developing is on Linux. I don't think the scandir() would be what I need. I am trying to create a shell that would perform dir history command. Basically, the dir-history command should display the 12 most recent directories. I hope that was a clear explanation. Thanks!
  #4  
Old 04-Feb-2005, 08:35
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,218
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold
Quote:
Originally Posted by ioby
Hey Dave,
The shell I am developing is on Linux. I don't think the scandir() would be what I need. I am trying to create a shell that would perform dir history command. Basically, the dir-history command should display the 12 most recent directories. I hope that was a clear explanation. Thanks!


I'm sorry I misunderstood your original post (my fault, not necessarily yours).

Now that I understand the problem (I think) I would like to know what you mean by "I need help...". What kind of help? If you are working on a Linux shell in C++, it seems to me that you must have an understanding of basic (and, probably, intermediate or above) C++ programming principles and practices. So how can we help? To get answers, you have to ask questions.

Regards,

Dave
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I display <filename>.bmp on the screen? oriharel MS Visual C++ / MFC Forum 1 01-Dec-2004 15:51
uisng php to display php dopee MySQL / PHP Forum 6 14-May-2004 19:40
Call a C program through Linux shell script nuwandee C Programming Language 3 29-Mar-2004 22:54

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:46.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.