Showing posts with label employee program. Show all posts
Showing posts with label employee program. Show all posts

Wednesday, January 5, 2011

c++ Program to read data of N employees and compute Net_salary of each employee.

#include iostream
#include iomanip
using namespace std;


class employee
{
private:int num;
char name[20];
float bs,gs,da,it,net;
public: employee()
{
num=0;
name[0]='\0';
bs=da=it=net=0;
};
void read();
void show();
void calc();
};