RCS file: classes.h,v
Working file: classes.h
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
This file contains description for classes hierarcy
declared classes
Books, Dvds, Periodicals and Library.
----------------------------
revision 1.5 locked by: root;
date: 2020/03/31 06:22:29; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.4
date: 2020/03/31 06:22:03; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.3
date: 2020/03/31 06:19:56; author: root; state: Exp; lines: +7 -0
Declared a single date item in private sections of each class
----------------------------
revision 1.2
date: 2020/03/31 06:11:13; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.1
date: 2020/03/31 06:08:39; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: headers.h,v
Working file: headers.h
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
All include classes will reside here
included iostream
----------------------------
revision 1.3 locked by: root;
date: 2020/03/31 06:26:05; author: root; state: Exp; lines: +1 -1
ytpo
----------------------------
revision 1.2
date: 2020/03/31 06:25:28; author: root; state: Exp; lines: +1 -0
declared namespace std
----------------------------
revision 1.1
date: 2020/03/31 06:09:27; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: Books.cpp,v
Working file: Books.cpp
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
This file contains zero argument constructor for class Books
----------------------------
revision 1.5 locked by: root;
date: 2020/03/31 06:30:19; author: root; state: Exp; lines: +1 -1
typo
typo
typo
----------------------------
revision 1.4
date: 2020/03/31 06:29:22; author: root; state: Exp; lines: +1 -1
typo
typo
----------------------------
revision 1.3
date: 2020/03/31 06:26:49; author: root; state: Exp; lines: +0 -1
No return statemsnt allowed from constructors.
so removed return statement.
----------------------------
revision 1.2
date: 2020/03/31 06:24:14; author: root; state: Exp; lines: +1 -1
Resolved the scope of the constructor fuction to its class
----------------------------
revision 1.1
date: 2020/03/31 06:20:24; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: Dvds.cpp,v
Working file: Dvds.cpp
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
This file contains zero argument constructor for class Dvds.
----------------------------
revision 1.5 locked by: root;
date: 2020/03/31 06:30:27; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.4
date: 2020/03/31 06:29:31; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.3
date: 2020/03/31 06:27:17; author: root; state: Exp; lines: +0 -1
No return statemsnt allowed from constructors.
>> so removed return statement.
,
----------------------------
revision 1.2
date: 2020/03/31 06:24:32; author: root; state: Exp; lines: +1 -1
Resolved the scope of the constructor fuction to its class
----------------------------
revision 1.1
date: 2020/03/31 06:20:55; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: Library.cpp,v
Working file: Library.cpp
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
This file contains zero argument constructor for class Library.
----------------------------
revision 1.5 locked by: root;
date: 2020/03/31 06:30:29; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.4
date: 2020/03/31 06:29:34; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.3
date: 2020/03/31 06:27:28; author: root; state: Exp; lines: +0 -1
No return statemsnt allowed from constructors.
>> so removed return statement.
----------------------------
revision 1.2
date: 2020/03/31 06:24:43; author: root; state: Exp; lines: +1 -1
Resolved the scope of the constructor fuction to its class
----------------------------
revision 1.1
date: 2020/03/31 06:21:07; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: main.cpp,v
Working file: main.cpp
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
This is the main source file for
Project: Library management System.
Just declared an object fpor library.
----------------------------
revision 1.1 locked by: root;
date: 2020/03/31 06:09:48; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: Periodicals.cpp,v
Working file: Periodicals.cpp
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
This file contains zero argument constructor for class Periodicals
----------------------------
revision 1.5 locked by: root;
date: 2020/03/31 06:30:32; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.4
date: 2020/03/31 06:29:37; author: root; state: Exp; lines: +1 -1
typo
----------------------------
revision 1.3
date: 2020/03/31 06:27:32; author: root; state: Exp; lines: +0 -1
No return statemsnt allowed from constructors.
>> so removed return statement.
----------------------------
revision 1.2
date: 2020/03/31 06:24:46; author: root; state: Exp; lines: +1 -1
Resolved the scope of the constructor fuction to its class
----------------------------
revision 1.1
date: 2020/03/31 06:21:12; author: root; state: Exp;
Initial revision
=============================================================================
class Library
{
private:
ifstream booksf;
ifstream dvdsf;
ifstream periodicalsf;
public:
Library();
};
class Books: public Library
{
private:
// Keep Books Data Here
public:
Books();
};
class Dvds: public Library
{
private:
// Keep Dvds Data Here
public:
Dvds();
};
class Periodicals: public Library
{
private:
// Keep Periodicals Data Here
public:
Peridicals();
};
main.cpp
declare an object each of type Books, Dvds and Periodicals
Ensure that constructors are executing in approprite order.
Creat Inentory by reading file (handles given in class Library)
the data read from file will be kept in corresponding classes
? where will you keep creat inventory function.
It looks like you're new here. If you want to get involved, click one of these buttons!