#include<iostream>
#include<conio.h>
using namespace std;
struct emp
{
char name[100];
char number[100];
char depart[100];
char distnation[100];
}Emp[10];
int main()
{
int n,i;
cout << "enter Number Of records...";
cin>> n;
cout << "\n\n\n";
for(i=0;i<n;i++)
{
system("cls");
cout << "save record Emply :>"<< i+1<< endl<< endl;
cout << "Enter Employe Name: ";
cin >> Emp[i].name;
cout << "Enter Number:";
cin>> Emp[i].number;
cout << "Enter Department: ";
cin >> Emp[i].depart;
cout << "Enter Distination: " ;
cin >> Emp[i]. distnation;
}
for(i=0;i<n;i++)
{
// system("cls");
cout << "Record Emply :>"<< i+1<< endl<< endl;
cout << "Employ NAme : " << Emp[i].name << endl;
cout << "Employ Number : " << Emp[i].number<< endl;
cout << "Employ Distination : " << Emp[i].distnation << endl;
cout << "Employ Department : " << Emp[i].depart << endl;
}
getch();
return 0;
}
#include<conio.h>
using namespace std;
struct emp
{
char name[100];
char number[100];
char depart[100];
char distnation[100];
}Emp[10];
int main()
{
int n,i;
cout << "enter Number Of records...";
cin>> n;
cout << "\n\n\n";
for(i=0;i<n;i++)
{
system("cls");
cout << "save record Emply :>"<< i+1<< endl<< endl;
cout << "Enter Employe Name: ";
cin >> Emp[i].name;
cout << "Enter Number:";
cin>> Emp[i].number;
cout << "Enter Department: ";
cin >> Emp[i].depart;
cout << "Enter Distination: " ;
cin >> Emp[i]. distnation;
}
for(i=0;i<n;i++)
{
// system("cls");
cout << "Record Emply :>"<< i+1<< endl<< endl;
cout << "Employ NAme : " << Emp[i].name << endl;
cout << "Employ Number : " << Emp[i].number<< endl;
cout << "Employ Distination : " << Emp[i].distnation << endl;
cout << "Employ Department : " << Emp[i].depart << endl;
}
getch();
return 0;
}