CSE 109 Test 2 Friday 14 November 2008 ===========================SUGGESTED ANSWERS========================== 1. Many records are identified with the 9-digit social security number. Thus, it would be useful to have a templated class for pairs whose first entry is a social security number and whose second entry is of some given type. Write the template for such a class, calling the class SSBox. It need only have the functionality that would enable the code below to be compiled and to produce the indicated output when run. SSBox a(887654321,22), b(a); cout< using namespace std; template class SSBox{ public: SSBox(int n,const X &x); SSBox(const SSBox &s); bool operator == (const SSBox &s)const; template friend ostream & operator<<(ostream &out,const SSBox &s); private: int num; X data; }; template SSBox::SSBox(int n,const X &x):num(n),data(x){ if(n<0){ cerr<<"Bad SS#\n"; exit(1); } } template SSBox::SSBox(const SSBox &s):num(s.num),data(s.data){} template bool SSBox::operator == (const SSBox &s)const{ return num==s.num && data==s.data; } template ostream & operator<<(ostream &out,const SSBox &s){ out<<"{SS# "<