skip to main | skip to sidebar

Excel in Programming

Thursday, June 4, 2009

INDEX

C++ Programs

Employee details and to output the data
Fibonacci Numbers
Sum Of Digits
Constructor - Default Constructor
Parameterized Constructor
Constructor Overloading
Copy Constructor
Function Overloading - Program
Outside Declaration Of The Member Function
Inside Declaration Of The Member Function
Overloading Unary Operator
Overloading Unary Operator Using + Operator
Merge Sort Program - Algorithm
File Mode Program
File Concept Program
Exception Handling Program
Function Templates Program
Virtual Function Program
Friend Function Program
Multilevel Inheritance
Multiple Inheritance Program
Single Inheritance Program
Static Member Function

Creation Of Class And Function
Static Class Member
Destructor Program
Constructor Program
Posted by Lakshadharsi at 10:09 PM No comments:

Employee details and to output the data

To read employee details and to output the data

#include → Preprocessor directive
class employee → Class Declaration
{
private:
char empname[50];
int empno;

public:
void getvalue()
{
cout<<”INPUT EMP NAME:”; cint>>empname;
cout<<”INPUT EMP NO:”; cint>>empno;
}



void displayvalue()
{
cout<<”EMP NAME:”<
coout<<
}
};



main()
{
employee e1; → Creation of Object
e1.getvalue();
e1.displayvalu();
}



Posted by Lakshadharsi at 10:07 PM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Counter

hydroxycut lawsuit

Blog Archive

  • ►  2010 (13)
    • ►  February (13)
  • ▼  2009 (31)
    • ►  October (1)
    • ►  September (2)
    • ▼  June (2)
      • INDEX
      • Employee details and to output the data
    • ►  May (9)
    • ►  April (17)

google ads

Design by: FinalSense