101
{ USER }
posts: 55
last: 09-Apr-2008
TITLE: Info person program
DESCRIPTION: Info person
Submitted: 09-Apr-2008 10:02:07 ( 38w 5d 18h ago ) Language: C++ (*.cpp *.h)
Views: 98 Lines of Code: 46 LINES
Rating:
rate: star1
star2
star3
star4
star5
dstar1
dstar2
dstar3
dstar4
dstar5  ( rated! )
  { 0.00 / 5 }
Difficulty: Intermediate
Bookmark
/* Author: 101
   Date: 09-04-2008
   Filename: 
   Description: Info person
   History: 
*/


#include<iostream.h>
#include<conio.h>
class person
{
	char *name,*add,*eadd;
	long pno,ctzno;
	public:
	void info()
  {
	cout<<"Enter the name:";
	cin>>name;
	cout<<"Enter the address:";
	cin>>add;
	cout<<"Enter the email address:";
	cin>>eadd;
	cout<<"Enter the phone no:";
	cin>>pno;
	cout<<"Enter the citizenship no:";
	cin>>ctzno;
  }
  void PrintInfo()
  {
	cout<<"********************Person Data***************************"<<endl;
	cout<<"Name:"<< name <<endl;
	cout<<"Address:"<<add<<endl;
	cout<<"E-mail address:"<<eadd<<endl;
	cout<<"Phone no:"<<pno<<endl;
	cout<<"Citizenship no:"<<ctzno<<endl;
	cout<<"********************Thank YOU******************************"<<endl;
  }
};
void main()
{
	person d;
	d.info();
	d.PrintInfo();
	getch();
}