ICode9

精准搜索请尝试: 精确搜索
  • 几种常见排序算法2022-06-08 10:34:57

    几种常见排序算法 使用语言及编译环境 使用语言:C/C++ 编译环境:VS Code 冒泡排序 参照https://www.bilibili.com/video/BV1T4411A7Fy?p=7 原理:数组元素两两比较,交换元素,大元素往后放#include <iostream> using namespace std; int main() { int arrayLength = 6;

  • 构建数组栈类2022-06-05 22:05:41

    构建数组栈类 代码 #include <iostream> using namespace std; // 改变一个一维数组的长度 template<class T> void changeLength1D(T *&a, int oldLength, int newLength) { if (newLength < 0) cerr << "new Length must be > 0"; T *

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

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

ICode9版权所有