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

How to write a function that goes through an array of characters and eliminates any elements that are not letters (Legal letters can be either in an uppercase or a lowercase format.) The function removeNonLetters should return the new effective size of the array as the result.

2 Answers  


What is the disadvantage of templates ?

2 Answers   NSN, Symphony,


What is C++ could you enplane me please?

1 Answers  


how to overload << and >> operator in c++

3 Answers   Wipro,


Is string part of stl?

0 Answers  






what is a template?

2 Answers   Amazon, BITS, IBS, Wipro,


What is meant by stl in c++?

0 Answers  


How do I convert a stl file?

0 Answers  


Can we use stl in coding interviews?

0 Answers  


What are the various types of stl containers?

0 Answers  


i want a road rash 3d game code if some one know please help me

1 Answers  


What is a stl vector?

0 Answers  


Categories