Programme Code : BCA
Course Code : CS-72
| More

Year : 2012 Views: 849 Submitted By : Jasdeep Kaur On 14th September, 2012

Do you have solution for this Question. If yes    I aslo want solution.

Q.




7) Create a class LONGBINARYINTEGER that stores only binary digits (0 or 1) in a string of arbitrary length (the string is in the order of lowest significant bit to highest significant bit that is first element is lowest significant bit). The string has a constructor that makes sure that String has only binary digits. The class also has a copy constructor, and an overloaded + operator. The overloaded + operator adds two stings bit by bit taking care of the carry bit from the previous bit addition. Design and implement the class using C++. Write appropriate main( ) function to demonstrate the functionality of the class.


No Answer Found