Write a program class name BaraBitKaar
BaraBitKaar Sabtract(BaraBitKaar b);
When this function.
BaraBitKaar sabtract(BaraBitKaar b);
When this function called int main() like following example:
BaraBitKaar p( "01111111111100000000000001111111101010100101111111111111111111111111111111111111111111111111111111111011111101110101111101011011");
BaraBitKaar q( "00111111111100000000000001111111101010100101111111111111111111111111111111111111111111111111111111111011111101110101111101011011");
BaraBitKaar r;
r = p.sabtract(q); //this is how sabtract is supposed to be used to sabtract p and q. Notice r receives the return which is of type BaraBitKaar.
r.PrintBinary();//
Comments
Leave a comment