Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

C++ Program to Create and Display Employee Records, Thesis of Data Structures and Algorithms

A simple c++ program that allows the user to input and store employee data, including id and name, and then displays the records. This program can be used as a starting point for creating more complex employee record systems.

What you will learn

  • How can you modify the program to store more than one employee record?
  • What data can be added to the employee record besides ID and name?
  • How can the program be expanded to include functions for updating and deleting employee records?

Typology: Thesis

2020/2021

Uploaded on 02/13/2021

tau123
tau123 🇮🇳

8 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
#include<iostream>
using namespace std;
class employee{
int id; char name[30];
public:
void getData(){
cout<<endl<<"Enter Employee ID: "; cin>>id;
cout<<endl<<"Enter Employee Name: "; cin>>name;
}
void putData(){
cout<<endl<<"Employee ID is: "<<id<<"\t"<<"Employee Name is: "<<name;
} };
int main(){
employee e[1];
for (int i = 0; i < 1; i++){
cout<<endl<<"Enter details of"<<i+1<<"Employee"; e[i].getData();
}
cout<<endl<<"Details of Employees";
for (int i = 0; i < 1; i++){
e[i].putData();
}
return 0; }

Partial preview of the text

Download C++ Program to Create and Display Employee Records and more Thesis Data Structures and Algorithms in PDF only on Docsity!

#include using namespace std; class employee{ int id; char name[30]; public: void getData(){ cout<<endl<<"Enter Employee ID: "; cin>>id; cout<<endl<<"Enter Employee Name: "; cin>>name; } void putData(){ cout<<endl<<"Employee ID is: "<<id<<"\t"<<"Employee Name is: "<<name; } }; int main(){ employee e[1]; for (int i = 0; i < 1; i++){ cout<<endl<<"Enter details of"<<i+1<<"Employee"; e[i].getData(); } cout<<endl<<"Details of Employees"; for (int i = 0; i < 1; i++){ e[i].putData(); } return 0; }