有关引用和模板的一个问题?
有下面一个程序:
#include "iostream.h"
void throw_test(int);
class ob
{
public: int member;
};
int main()
{int flag=2;
try{ throw_test(flag);
}
catch(const char *p)
{cout<<"into character catch-handler"<<endl;
cout<<"member value is"<<ob_inst.member<<endl;
return(0);
}
void throw_test(int flag)
{if(flag==1)
throw "panic!!!";
else
if(flag==2)
{ob ob_inst;
ob_inst.member=5
throw ob_inst;
}
}
请解释一下里面的引用和模板(有分得!!!!!).