Code:
#include<iostream.h>
#include<stdio.h>
#include<conio.h>
using namespace std;
class CV
{
public:
char name;
char qualfctn;
int idno;
int age;
char city;
char hobbies;
char skills;
void getdata()
{
cout<<"Enter name, qualfctn, id-no, age, city, hobbies & skills respectively : ";
cin>>name, qualfctn, idno, age, city, hobbies, skills;
}
void showdata ()
{
cout<<"your name is : "<<name<<endl;
cout<<"your qualfctn is : "<<qualfctn<<endl;
cout<<"your idno is : "<<idno<<endl;
cout<<"your age is : "<<age<<endl;
cout<<"your city is : "<<city<<endl;
cout<<"your hobbies is : "<<hobbies<<endl;
cout<<"your skills is : "<<skills<<endl;
};
void main ()
{
CV name;
name.getdata();
name.showdata();
CV qualfctn;
qualfctn.getdata();
qualfctn.showdata();
CV idno;
idno.getdata();
idno.showdata();
CV age;
age.getdata();
age.showdata();
CV city;
city.getdata();
city.showdata();
CV hobbies;
hobbies.getdata();
hobbies.showdata();
CV skills;
skills.getdata();
skills.showdata();
getch ();
}
}
Comment