Skip to main content

Posts

complex no

complex no usig operator overloading #include #include class complex { float r,l; public: void setdata() { cout <<"Enter complex number"; cin >>r>>l; } void show() { cout < } complex operator +(complex p) { complex temp; temp.r=r+p.r; temp.l=l+p.l; return(temp); } }; void main() { clrs r complex c1,c2,c3; c1.setdata(); c2.setdata(); c3=c1+c2; c3.show(); gecth(); }

OPERATOR OVERLOADING

simple example of operator overloading #include #include class multiply { int a,b; public: void setdata() { cout <<"Enter 2 numbers"; cin >>a>>b; } void show() { clrscr(); cout <<"a="< >k; m*k; m.show(); getch(); }
Assingment NO 1 THE USE OF CSS(CACCADING STYLE SHEET) BIODATA MANISH RAJ B.Sc C.A.(Part-2) 20 Golmuri SAVE WITH info.XML OPEN A NEW NOTEPAD : root { background-color:orange; } resume { display:block; font-style:bold; font-style:italic; color:yellow; font-size:60pt; } name { display:block; font-style:bold; font-style:italic; color:red; font-size:60pt; } education { display:block; font-style:bold; font-style:italic; color:blue; font-size:50pt; } age { display:block; font-style:bold; font-style:italic; color:green; font-size:40pt; } address { display:block; font-style:bold; font-style:italic; color:brown; font-size:30pt; } save with info.css

USE OF BASE CLASS

A program to show the use of vitual base class #include #include class A { protected: int a; public: void seta() { a=10; } }; class B:virtual public A { protected: int b; public: void setb() { b=20; } }; class C:virtual public A { protected: int c; public: void setc() { c=30; } }; class D:public B,public C { private: int d; public: void setd() { d=40; } void display() { cout<<"The Value Of A is="<

USE OF BASE CLASS

A program to show the use of vitual base class #include #include class A { protected: int a; public: void seta() { a=10; } }; class B:virtual public A { protected: int b; public: void setb() { b=20; } }; class C:virtual public A { protected: int c; public: void setc() { c=30; } }; class D:public B,public C { private: int d; public: void setd() { d=40; } void display() { cout<<"The Value Of A is="<

Leadership Skills

Yesterday my father advised me to read Develop your leadership skills . I started reading today and I couldn't stop myself in between. It is a great book written by John Adair. Leadership skills have now been universally recognised as a key skill It is possible to develop your own abilities as a leader. All this book is about How to do that. I just want to share few points that I found intresting about leadership Nobody can teach you leadership. It is something you have to learn. You learn principally from experience. But experience or practice has to be illuminated by principles or ideas. A) PERSONALITY AND CHARACTER : Personality and Character are important qualities of leadership. A Leader should possess, exemplify and perhaps even personify the qualities expected or required in his working group. Without it he will lack credibility. (Incidentally, here is one of the first differences between leaders and managers: the latter can be appointed over others in a hierarchy rega