rendered paste body#include <iostream>
#include <list>
using namespace std;
class Zsak
{
public:
Zsak();
~Zsak();
void Add( int x );
friend ostream& operator<< (std::ostream& os, Zsak& zs);
friend Zsak operator+( const Zsak&, const Zsak& );
private:
list<int> zs;
};
std::ostream& operator<< (std::ostream& os, Zsak& zs)
{
list<int>::iterator i;
for( i = zs.zs.begin(); i != zs.zs.end(); i++ )
os << *i << " ";
return os;
}
Zsak operator+( const Zsak& a, const Zsak& b)
{
Zsak ret;
list<int>::iterator i;
for( i = a.zs.begin(); i != a.zs.end(); i++ );
;
return ret;
}
Zsak::Zsak()
{
zs.clear();
}
Zsak::~Zsak()
{
}
void Zsak::Add( int x )
{
list<int>::iterator i;
for( i = zs.begin(); i != zs.end(); i++ )
if( (*i) >= x )
break;
zs.insert( i, x );
}
int main()
{
}