void bin::display() { int n; cout<<"\nUpto how many bits do you want to display\n->"; cin>>n; cout<<"\nFirst Binary Number is:\n"; for(int i=32-n;i<32;i++) { & cout<<a[i]; } cout<<endl; if(m==1) cout<<"\n2's complement of second number is:\n"; else { cout<<"\nSecond Binary Number is:\n"; } for(int i=(32-n);i<32;i++) { & cout<<b[i]; } cout<<endl; cout<<"Result is: \n"; for(int i=32-n;i<32;i++) { & cout<<c[i]; } cout<<endl; }
int main() { char y;y='y'; bin b; int ch; b.getdata(); b.sub(); b.display(); system("PAUSE"); return 0; }
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments