simple program in a class in c++ language

#include<iostream>
#include<string>
using namespace std;
class customer
{
private:
int customer_id;
char *customer_name[50];
char *email[50];
int telephone_no;
char *str[200];
int nic_no;
public:
void get()
{

cout<<"Enter the Customer ID"<<endl;
cin>>customer_id;
cout<<"Enter Customer Name";
cin>>customer_name[50];
cout<<"Enter Email Adress";
cin>>email[50];

cout<<"Enter Telephone Number";
cin>>telephone_no;

cout<<"Enter Adress";
cin>>str[100];

cout<<"Enter nic no";
cin>>nic_no;


}
void out()
{


cout<<customer_id;
cout<<customer_name[50];
cout<<email[50];
cout<<telephone_no;
cout<<str;
cout<<nic_no;

}

};
int main()
{
customer obj;
obj.get();
obj.out();
}
simple program in a class in c++ language simple program in a class in c++ language Reviewed by Hamza Bashir Ahmad on 06:18:00 Rating: 5