下面不属于同一函数模板的是()。
A:template t1 max(t1 &a,t1 &b) {…}template<
选项:
下面不属于同一函数模板的是( )。
A:template<class t1> t1 max(t1 &a,t1 &b) {…}template<class t2> t2 max(t2 &a,t2 &b) {…}
B:template<class t1>t1 max(t1 a,t1 b){…}template<class t2>t2 max(t2 &a,t2 &b){…}
C:template<class t1> t1 max(t1 * a,t1 * b) {
选项:
下面不属于同一函数模板的是( )。
A:template<class t1> t1 max(t1 &a,t1 &b) {…}template<class t2> t2 max(t2 &a,t2 &b) {…}
B:template<class t1>t1 max(t1 a,t1 b){…}template<class t2>t2 max(t2 &a,t2 &b){…}
C:template<class t1> t1 max(t1 * a,t1 * b) {
发布时间:2024-06-04 20:51:21