ICode9

精准搜索请尝试: 精确搜索
  • C++模板基本语法2022-07-13 13:01:46

    #include <iostream> template<typename T> void myswap(T &a, T &b) { T tmp = a; a = b; b = tmp; } int main() { using namespace std; int a = 1; int b = 2; myswap(a, b); cout << "a " << a &l

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有