问题:
[单选题]下列模板声明中,有语法错误的是( )。
Atemplate<typename T> T fun(T x)return x;
Btemplate<typename T> T fun(T x,int n)retum x*n;
Ctemplate<class T> T fun(T* p)return *p;
Dtemplate<class T> T classAT n;
Atemplate<typename T> T fun(T x)return x;
Btemplate<typename T> T fun(T x,int n)retum x*n;
Ctemplate<class T> T fun(T* p)return *p;
Dtemplate<class T> T classAT n;
Copyright © 2024 www.daanwo.com All Rights Reserved |