Define a Class in C++. (DIRECTORY)


Define a class DIRECTORY in C++ with following specifications:

Public members
  • ·         Docunames              An array of strings of size[10][25] to represent all the name of documents inside directory.
  • ·         Occupied                  long to represent total number of Bytes used in directory.
  • ·         Freespace                 long to represent total number of Bytes free in my directory


Public members
  • ·         Newdocumentry      A function to accept values of Doucunames, Freespace and Occupied by user.
  • ·         Refreespace()          A function that returns the value of total Kilobytes available.
  • ·         Showfiles()               A function that displays the names of all Documents in directory.




No comments

Post your comments

Powered by Blogger.