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 "?
Submitted by: Administrator#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();
}
Submitted by: Administrator
#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();
}
Submitted by: Administrator
Read Online STL Job Interview Questions And Answers
Top STL Questions
☺ | Write a program in C/C++ to implement reader- writer problem? |
☺ | Write a program in C++ returning starting locations of a substring using pointers? |
☺ | Why & sign is used in copy constructor? |
☺ | Write a c++ to define a class box with length, breadth and height as data member and input value(), printvalue() and volume() as member functions? |
☺ | WHAT IS THE DIFFERENCE BETWEEN C++ AND VC++? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |