Friday 9 September 2011

Creating Employee Database Using Singly linked list

Develop a Employee data base system using single linked list:


Employee Data Base System Architecture


class Diagram

My Expected out put is as follows:
*----------Student Database-----------*
1. Create Database
 2.  insertion a node after ith node
3. Display the employee details
4. display data of the ith node (find())
5. delete particular emp record
 6. search for a value in the Employee Data base
 7. Modify
 8. Display
9.  Reverse of the Employee Records
 10. Length of the emp record
11. Copy record to another record 
12. Erase Emp Record
 13. Exit

Enter your choice


2) If user types 1

Enter your choice
1

3) Now choice is 1 i.e ch=1. Means creating the Employee records

Menu
1. Create Database
 2.  insertion a node after ith node
3. Display the employee details
4. display data of the ith node (find())
5. delete particular emp record
 6. search for a value in the Employee Data base
 7. Modify
 8. Display
9.  Reverse of the Employee Records
 10. Length of the emp record
11. Copy record to another record 
12. Erase Emp Record
 13. Exit
Enter your choice

1
How many Entries to Create Database???
 2
Enter empno No. , Name & sal
10
raj
35000
Enter empno No. , Name & sal
11
ravi
14000


/*******************project code************************************************/
/*Title : Creating Emp Database Using Singly linked list */
#include<process.h>
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
//class Emp
class Node
{
 private:
  int empno;
  char *name;
  double sal;
  char sex;
  Node *next;//Self referential pointer...
//incomplete


/******************end of project code *******************************************/
Projects on C++
projects on single linked list

What is  Linked list
types:

Doubly Linked List
Circular Linked List 

No comments:

Post a Comment