04 2021 档案
摘要:1 #include<iostream> 2 #include<stdlib.h> 3 using namespace std; 4 #include<deque> 5 #include<algorithm> 6 7 8 /* 9 3.3.6 deque数据存取 10 at(int idx); //
阅读全文
摘要:1 #include<iostream> 2 #include<stdlib.h> 3 using namespace std; 4 #include<deque> 5 6 7 /* 8 3.3.5 deque插入和删除 9 两端插入操作: 10 push_back(elem); //在容器尾部添加
阅读全文
摘要:1 #include<iostream> 2 #include<stdlib.h> 3 using namespace std; 4 #include<deque> 5 6 7 /* 8 3.3.3 deque赋值操作 9 deque& operator=(const deque &deq); //
阅读全文
摘要:课程来源 黑马程序员匠心之作|C++教程从0到1入门编程,学习编程不再难 学习进程 第1阶段-C++基础入门(2-6)PDF 1 初识C++、数据类型、运算符 2 流程控制语句 2.1【选择结构:if、三目运算符、switch】 2.2【while循环、案例】 2.3【do while循环、案例】
阅读全文
摘要:https://blog.csdn.net/qq_44830040/article/details/106049992 一、Ubuntu不同的版本对应ROS不同的版本 二、配置Ubuntu软件库 三、安装过程及问题解决 四、启动运行小海龟例子
阅读全文
摘要:1 #include<iostream> 2 #include<stdlib.h> 3 using namespace std; 4 #include<deque> 5 6 7 /* 8 3.3 deque容器 9 3.3.1 deque基本概念 10 双端数组,可以对头端进行插入删除操作(类似于队
阅读全文
摘要:一、机器学习概述 1.1人工智能概述 1.1.1机器学习是人工智能的一个实现途径 1.1.2深度学习是从机器学习的一个方法(人工神经网络)发展而来 1.1.3机器学习的主要应用领域 1、自然语言处理 2、图像识别 3、传统预测 1.2机器学习是啥 1.2.1数据 1、结构:特征值+目标值 2、dat
阅读全文
摘要:监督学习(有目标值,输入数据有特征有标签,即有标准答案) 1、分类算法(其目标值是类别) 2、回归算法(其目标值是连续型的数据) 无监督学习(无目标值,输入数据有特征无标签,即无标准答案) 1、聚类算法 三、分类算法 3.1sklearn转换器与预估器 3.1.1转换器(特征工程的父类) 1、特征工
阅读全文
摘要:四、回归算法 4.1线性回归 4.1.1线性回归的原理 回归问题-目标值是连续型数据 1、线性回归的应用场景 1)房价预测 2)销售额度预测 3)贷款额度预测 2、什么是线性回归 特征值和目标值之间的关系是一种函数关系 1)定义 线性回归是利用回归方程(函数)对一个或多个自变量(特征值)和 因变量(
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> #include<vector> using namespace std; /* 3.2.7 vector互换空间 实现两个容器内元素进行互换 swap(vec); // 将vec与本身的元
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<vector> /* 3.2.4 vector容量和大小 empty(); //判断容器是否为空 capacity(); //容器
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<vector> void pv(vector<int> & v) { for(vector<int>::iterator it=v
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; void test1() { string str = "hello"; cout << str << endl; //read for(int i
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 3.1.6 string字符串比较 字符串比较是按字符的ASCII码进行对比 = 返回 0 > 返回 1 < 返回 -1 int compar
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 3.1.5 string查找和替换 int find(const string& str, int pos = 0) const; //查找s
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 3.1.4 string字符串拼接 string& operator+=(const char* str); //重载+=操作符 string
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 3.1.3 string赋值操作 string& operator=(const char* s); //char*类型字符串 赋值给当前的字
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 3.1 string容器 3.1.1 string基本概念 string和char * 区别: char * 是一个指针 string是c++
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include <vector> #include <algorithm> /* 2.5.3 vector容器嵌套容器 */ void test1
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<vector> #include<algorithm> /* 2.5.2 vector容器存放自定义数据类型 */ class P
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<vector> #include<algorithm> /* 2.5.1 vector放置内置数据类型 容器: vector 算法
阅读全文
摘要:MyArray.hpp #pragma once #include<iostream> #include<string> using namespace std; template<class T> class MyArray { public: // 有参构造 MyArray(int capaci
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.3.8类模板与友元 掌握类模板配合友元函数的类内和类外实现 全局函数类内实现 - 直接在类内声明友元即可 全局函数类外实现 - 需要提前让
阅读全文
摘要:person.h #pragma once #include<iostream> #include<string> using namespace std; template<class T1, class T2> class Person{ public: T1 name; T2 age; Per
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<typeinfo> /* 1.3.6类模板成员函数类外实现 */ template<class T1, class T2> cla
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<typeinfo> /* 1.3.5类模板与继承 当子类继承的父类是一个类模板时,子类在声明的时候,要指定出父类中T的类型 如果不
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<typeinfo> /* 1.3.4类模板对象做函数参数 类模板实例化出的对象,向函数传参的方式 共有三种传入方式: 1. 指定传
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.3.3类模板中成员函数创建时机 类模板中成员函数和普通类中成员函数创建时机是有区别的: 普通类中的成员函数一开始就可以创建 类模板中的成员
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.3.2类模板和模板函数的区别 1. 类模板没有自动类型推导的使用方式 2. 类模板在模板参数列表中可以有默认参数(函数模板不可以有默认)
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.3类模板 1.3.1类模板语法 作用:建立一个通用类,类中的成员 数据类型可以不具体制定,用一个虚拟的类型来代表 语法:template<
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.2.6模板的局限性 模板的通用性并不是万能的 */ // ****************************************
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.2.5普通函数和函数模板的调用规则 1. 如果函数模板和普通函数都可以实现,优先调用普通函数 2. 可以通过空模板参数列表来强制调用函数模
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.2.4 普通函数和函数模板的区别 普通函数调用时可以发生自动类型转换(隐式类型转换) 函数模板调用时,如果利用自动类型推导,不会发生隐式类
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.2.3函数模板案例 利用函数模板封装一个排序的函数,可以对不同数据类型数组进行排序 排序规则从大到小,排序算法为选择排序 */ templ
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.2.2函数模板注意事项 自动类型推导,必须推导出一致的数据类型T,才可以使用 模板必须要确定出T的数据类型,才可以使用 */ templa
阅读全文
摘要:#include<iostream> #include<stdlib.h> #include<string> using namespace std; /* 1.1模板概念 C++另一种编程思想称为 泛型编程 ,主要利用的技术就是模板 C++提供两种模板机制:函数模板和类模板 */ /* 1.2函数
阅读全文
摘要:work.h #pragma once#include#includeusing namespace std;// 职工抽象类class Worker{public: int id; string name; int dept_id; ...
阅读全文