Thursday, February 15, 2018

write an program to calculator of two sum using constructor in c++

#include<iostream.h>
#include<conio.h>
#include<stdio.h>
 class add
  { private: int x,y,s;
      public: add()
{ cout<<"enter two vallue of x,y:";
cin>>x>>y;
 s =x+y;
cout<<"add="<<s;
}
};
void main()
{add a;
   getch();
}

No comments:

Balkrishna Bhandari, : 8085 microprocessor program

Balkrishna Bhandari, : 8085 microprocessor program : write an assemble language program to add two 8-bit data 32H and 44H store result at 20...