どうダメなんだ?

friend double xxx(double d){return te.np();}
を呼ぶつもりなら

void main(){
cout<<xxx();
}
は xxx に引数がないようだが?