write a c++ program to create an object of a class called
employee containing the employee code name designation basic
salarry HRA Da gross salary as data 10 such objects "members
process "



write a c++ program to create an object of a class called employee containing the employee code na..

Answer / ray baboo yadav

#include<iostream.h>
#include<conio.h>
class person
{
int person;
float salery;
}p;
cout<<"enter the person name";
cin>>p.person;
cout<<"enter the salery";
cin>>p.salery;
}
void main()
{
person;
getch();
}

Is This Answer Correct ?    6 Yes 21 No

Post New Answer

More STL Interview Questions

what is compiler?

4 Answers   NASA,


a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.

0 Answers  


write a program that input four digit number and find how many 7 that number contains

4 Answers  


Give the output of the following program main() {char *p='a'; int *i=100/*p; } what will be the value of *i= 1

6 Answers   Sun Microsystems,


Describe the elements of Microsoft Word screen. Write down steps for creating, saving, retrieving, editing and printing a document.

2 Answers  






Who wrote stl?

0 Answers  


HOW TO GET "H1B" -VISA 4 USA FOR MY SON?HE HAD COMPLETED "MS"(IT)FROM AUSTALIA 2007.I AM WORKING IN U.S.A.

0 Answers  


Difference between Structure and Class in C++?

5 Answers   Caritor,


In what cases using of a 'template' is a better approach then using of a 'base class'?

6 Answers   Lucent, Mind Tree, Wipro,


why does the execution of a c++ program start with main()???

11 Answers  


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

0 Answers   Ascent,


What are stl algorithms?

0 Answers  


Categories