template<class T>void repeat(T g,T b); int main() { repeat(10,"I'm OK");//因为存在2个类型所以通过不了! //是否都是统一类型的?比喻 repeat(int,int); repeat(char,char); //如果: repeat(int,char); 错误 repeat(char,int); 错误 }
64,648
社区成员
250,503
社区内容
加载中
试试用AI创作助手写篇文章吧