网站首页 站内搜索

搜索结果

查询Tags标签: MyForeach,共有 1条记录
  • 28

    1 #include <iostream>2 #include <string>3 using namespace std;4 template<class T,class Pred>5 void MyForeach(T *p,T *q,Pred op){6 while(p != q){7 op(*p);8 ++ p;9 } 10 } 11 void Print(string s) 12 { 13 cout…

    2022/9/14 6:19:07 人评论 次浏览
扫一扫关注最新编程教程