i'm having trouble with this assignment for my cs class the directions say "Make operator+ combine together the contents of two TrashCan, as long as the contents does not exceed the size. Make operator- subtract one TrashCans contents from another, as long as the size or contents don't go negative. Support the >> and << operators to allow instances to be read from cin or written to cout. Make the boolean operators <, >, <= and >= test TrashCan's contents"
i typed the code out but i dont have and idea on how to input the operaators in code
#include <iostream>
#include <iomanip>
using namespace std;
int main();
{
TrashCan();
TrashCan( int size );
TrashCan( int size, int contents );
int main ();
void setSize( int size );
void addItem( );
void empty( );
void cover( );
void uncover( );
void printCan( );
bool myIsCovered;
int my_Size;
int my_Contents;
TrashCan myCan;
TrashCan yourCan;
TrashCan bigCan;
TrashCan junk;
TrashCan otherCan;
bigCan.setSize( 128 );
yourCan.setSize( 12 );
myCan.setSize( 12 );
junk.setSize( 1 );
yourCan.addItem( );
yourCan.addItem( );
myCan.addItem( );
junk.addItem();
junk.addItem();
otherCan = yourCan + myCan;
otherCan = junk - bigCan;
cout << junk << endl;
if (junk > bigCan) {
cout << "junk is bigger" << endl;
}
if (junk >= bigCan) {
cout << "junk is bigger or equal" << endl;
}
if (myCan < junk) {
cout<< "myCan is smaller" <<endl;
}
if (myCan <= junk) {
cout<< "myCan is smaller or equal" <<endl;
}
if (myCan != yourCan) {
cout << "myCan != yourCan!" <<endl;
}
if (myCan == myCan) {
cout << "equal test works" <<endl;
return 0;
}