#include "iostream.h" #include "conio.h" #include "iomanip.h" #include "stdio.h" #include "string.h" #include "ctype.h" class list{ public: char name[1000],age[1000],tel[1000]; }; void main(){ long int i,j,a,b,c; list p[100]; cout<<"Enter number of person:\n"; cin>>a; for(i=1;i<=a;i++){ cout<<"\nEnter p"<<i<<" name:\n"; gets(p[i-1].name); cout<<"\nEnter p"<<i<<" age:\n"; gets(p[i-1].age); cout<<"\nEnter p"<<i<<" tel:\n"; gets(p[i-1].tel); } clrscr(); for(j=1;j<=a;j++){ cout<<setw(40)<<"WELCOME\n"; cout<<"person "<<j<<":\n"; cout<<" name: "<<p[j-1].name<<"\n"; cout<<" age: "<<p[j-1].age<<"\n"; cout<<" tel: "<<p[j-1].tel<<"\n"; cout<<"********************************************************************************"; cout<<"\n\n\n\n"; } getch(); }