Search & Find out

Sunday, December 6, 2009

OPERATOR



#include "iostream.h"
#include "conio.h"
int g=1000;
class f
{
    public:
    void c();
    private:
    int g;
};
void f::c()
{
    g=500;
    cout<<"\n the value of g by outside  "<
    {
        g=100;

        cout<<"\n the value of g by inside  "<
        cout<<"\n the value of g by inside using :: operator  "<<::g;
    }
    cout<<"\n the value of g by outside using :: operator  "<<::g;
}
void main()
{
    f k;
    clrscr();
    cout<<"Working of Operator\n\n";
    k.c();
    getch();
}



Get the executable ( .exe ) file for this program..
Download

0 comments:

Post a Comment

 

My Blog List

Term of Use