#include <cstdlib>
#include <iostream>
using namespace std;
class Bilangan{
friend ostream& operator << (ostream&, const Bilangan&);
friend istream& operator >> (istream&, Bilangan&);
public:
Bilangan(int a0=0, float b0=0.0) : a(a0), b(b0){}
void banding_int(const Bilangan&, const Bilangan&);
Bilangan& operator=(const Bilangan&);
Bilangan operator+(const Bilangan&) const;
Bilangan operator-()const;
// protected:
int a;
float b;
};
ostream& operator << (ostream&out, const Bilangan& x){
out << “Bagian integer : ” << x.a << endl;
out << “Bagian float : ” << x.b << endl;
return out;
...