Public feed #602647

Miscellany

public text v1 · immutable
Raw Edit
·published 2007-07-04 06:20 UTC
rendered paste body
class top10_class
{
private:
public:
string country_name;
unsigned long spam;
unsigned long queued;
};


list<top10_class> top10;
list<top10_class>::iterator top10_iter;

bool top10SortPredicate(const top10_class &lhs,const top10_class &rhs)
{
	return lhs.spam<rhs.spam;
}
/***********************************************************************/


string top10message;
for(top10_iter=top10.begin();top10_iter!=top10.end();++top10_iter)
	{
	++i;
	if(i>=top10.size()-7)
		{
		top10message=top10_iter->country_name + " - " + top10_iter->spam;