Display Bio-Data on the terminal with the help of C++ program in Turbo C
/* Display Bio-Data on the terminal with the help of C++ code here.. */
#include<iostream.h> ___(Don't Missing Syntax required).
#include<conio.h> ___(Don't Missing Syntax required).
#include<stdio.h> ___(Don't Missing Syntax required).
#include<io.h> ___(Don't Missing Syntax required).
#include<string.h> ___(Don't Missing Syntax required).
class bio
{
private:
int no;
char
*name;
char
*add;
char
*qual;
char
*gen;
float
wgt,hgt;
public:
bio(int
num,char *nm,char *ad,char *qu,char *ge,float w,float h)
{
no=num;
name=nm;
add=ad;
qual=qu;
gen=
ge;
wgt=w;
hgt=h;
}
void
display() ___(Don't Missing Syntax required).
{
cout<<"\n..........My
Biodata........."<<endl; ___(Don't Missing Syntax required).
cout<<"\n
Number:"<<no<<endl;
cout<<"\n
Name :"<<name<<endl;
cout<<"\n
Address :"<<add<<endl;
cout<<"\n
Qualification:"<<qual<<endl;
cout<<"\n
Gender:"<<gen<<endl;
cout<<"\n
Weight:"<<wgt<<endl;
cout<<"\n
Height:"<<hgt<<endl;
cout<<"\n............................."<<endl;
}
};
void main()
{
int nums;
char nm[10]; ___(Don't Missing Syntax required).
char *adds;
char *quals;
char *gens;
float wgt,hgt;
clrscr();
cout<<"\n
Enter Your Detail"<<endl; ___(Don't Missing Syntax required).
cout<<"\n
Enter your number:"; ___(Don't Missing Syntax required).
cin>>nums;
cout<<"\n
Enter your name:"; ___(Don't Missing Syntax required).
cin>>nm;
cout<<"\n
Enter your address:"; ___(Don't Missing Syntax required).
cin>>adds;
cout<<"\n
Enter qualification:";
cin>>quals;
cout<<"\n
Enter your gender:";
cin>>gens;
cout<<"\n
Enter your height:";
cin>>hgt;
cout<<"\n
Enter your weight:";
cin>>wgt;
bio
b(nums,&nm[0],adds,quals,gens,hgt,wgt); ___(Don't Missing Syntax required).
b.display();
getch(); ___(Don't Missing Syntax required).
}
Help: First of all enter your bio-data above program code
and output of your above program through bio-data
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment