#include #include #include using namespace std; class Binary { private: string binaryString; int base; int decimalNo; public: // Constructor (If base is greater than 2 first convert into base 10 using that base and then convert back into binary and change the base to 2) Binary(string binaryStr, int base = 2){ if(base > 2){ } } void toBinary(){ binaryString = ""; int temp = decimalNo; while(temp > 0){ binaryString = char(temp%2 + '0') + binaryString; temp /= 2; } } void toDecimal(){ decimalNo = 0; for(int i=0;i>(int shiftAmount) const{ } // Overloading input operator friend istream& operator>>(istream& input, Binary& other){ } // Overloading output operator (Display Both Binary as well as Integer value) friend ostream& operator<<(ostream& output, const Binary& other){ } };