hahaha2223331999
码龄7年
关注
提问 私信
  • 博客:3,031
    3,031
    总访问量
  • 23
    原创
  • 957,411
    排名
  • 0
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:安徽省
  • 加入CSDN时间: 2018-01-09
博客简介:

mitchell1999k的博客

查看详细资料
个人成就
  • 获得1次点赞
  • 内容获得0次评论
  • 获得1次收藏
创作历程
  • 19篇
    2021年
  • 4篇
    2019年
成就勋章
TA的专栏
  • C++
    18篇
  • 数据结构
    2篇
  • 栈
  • JavaScript
兴趣领域 设置
  • 前端
    javascriptcssvue.js前端框架
  • 学习和成长
    面试
创作活动更多

仓颉编程语言体验有奖征文

仓颉编程语言官网已上线,提供版本下载、在线运行、文档体验等功能。为鼓励更多开发者探索仓颉编程语言,现诚邀各位开发者通过官网在线体验/下载使用,参与仓颉体验有奖征文活动。

368人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

C++学习笔记|模版

#include <iostream>#include <string>template <typename T>void function(T value){ std::cout<< sizeof(value)<<std::endl;}int main(){ int a=10; char b='a'; std::string c="test"; int*d=&a; functi.
原创
发布博客 2021.07.30 ·
98 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|运算符重载

#include <iostream>class Position{ int x,y;public: Position(int i,int j){ x=i; y=j; } void display(){ std::cout<<"("<<x<<","<<y<<")"<<std::endl; } //对运算符的重载实际上就是对函.
原创
发布博客 2021.07.30 ·
93 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|内联函数

一个类的所有对象不能共享内联函数的代码http://c.biancheng.net/view/199.html内联函数inline:1.在内联函数内不允许使用循环语句和开关语句; 2.内联函数的定义必须出现在内联函数第一次调用之前;只是声明不可以 3.类结构中所在的类说明内部定义的函数是内联函数。类中的内联函数??这块之后再补充...
原创
发布博客 2021.07.23 ·
148 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|子对象(构造函数和析构函数调用次序)

关心各个对象构造函数,析构函数执行的次序与在类中声明的次序有关,跟initializer list中的次序无关以在类B中说明的顺序调用子对象的构造函数,然后才是B的构造函数先是B的析构函数 然后以B中说明的相反次序调用子对象的析构函数#include <iostream>class A{ int m_a;public: A(){ m_a=1; std::cout<<"A constructor working...
原创
发布博客 2021.07.23 ·
445 阅读 ·
1 点赞 ·
0 评论 ·
1 收藏

C++学习笔记|类成员指针

类成员指针包括 类数据成员指针和类成员函数指针类数据成员指针#include <iostream>class Entity{public: Entity():m(0),n(0){} void dis(){ std::cout<<"m="<<m<<",n="<<n<<std::endl; } int m,n;};int main(){ int Entity::*p=
原创
发布博客 2021.07.23 ·
68 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|成员初始化表initializer list|Cherno C++ Tutorials

#include <iostream>#include <string>class Entity{private: std::string m_name; int m_score;public: Entity():m_name("Unknown"),m_score(0){// m_name="unknown"; } Entity(const std::string&name):m_name(name){// .
原创
发布博客 2021.07.22 ·
78 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Const常量|Cherno C++ Tutorials

https://www.bilibili.com/video/BV1VJ411M7WR?p=34const在class中的应用常量指针 指针常量常量引用#include <iostream>//const在类中的应用class Entity{private: int m_x,m_y; mutable int m_z;//即使在const的成员函数中 仍然可以修改public: int test; int GetX() const //这.
原创
发布博客 2021.07.21 ·
113 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|命名空间namespace

解决了不同文件中 定义相同名字的不同函数之类的问题?在一个命名空间中定义的全局标识符 其作用域为该命名空间当在一个命名空间外部需要使用该命名空间中定义的全局标识符时 需要使用该命名空间的名字和域解析符来修饰main.cpp好像函数的声明之类的 也要放在命名空间里#include <iostream>namespace A{ extern int s;//这里的extern我还是不太懂 但是如果不加的话 linker报错 重复命名 void test();.
原创
发布博客 2021.07.21 ·
73 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|String|Cherno C++ Tutorials

String是一个类 它本质还是一个字符数组关于string的各种函数 内部实现 操作符重载 之后再补充#include <iostream>#include <string>int main(){ const char*name="test";//在内存中 默认字符串后面有一个\0中止 这样才知道字符串在哪里结束 char name2[6]={'a','b','c','d','e','\0'};//自己定义字符串数组的时候 要在最后加上\0 否则输出.
原创
发布博客 2021.07.21 ·
93 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Array|Cherno C++ Tutorials

用new创建的数组 在堆上 需要使用delete释放#include <iostream>int* test(){ int *testArr=new int[5]; for (int i = 0; i < 5; ++i) { testArr[i]=i; } return testArr;}int main(){ int arr[5];//created on the stack int *ptr=new int.
原创
发布博客 2021.07.21 ·
87 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Visibility|Cherno C++ Tutorials

private:本类和友元protected:本类 友元和子类public:不受限制 程序中的任何地方都可以访问
原创
发布博客 2021.07.21 ·
148 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

数据结构|插入排序

//// Created by Mitchell Liu on 7/19/21.//#include <stdio.h>//从小到大排序void InsertSort(int *arr,int n){ int temp; int i,j; for (i = 1; i < n; i++) { if(arr[i]<arr[i-1]){ temp=arr[i]; for (j = i-1; .
原创
发布博客 2021.07.19 ·
73 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Virtual Function虚函数|Cherno C++ Tutorials

https://www.bilibili.com/video/BV1VJ411M7WR?p=28#include <iostream>class Parent{public: virtual std::string getName(){ return "Parent"; }};class Child:public Parent{private: std::string m_name;public: Child(const st
原创
发布博客 2021.07.16 ·
100 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Inheritance|Cherno C++ Tutorials

派生类包含了基类的所有内容#include <iostream>class Parent{public: float x,y; Parent(){ x=0;y=0; } void print(){ std::cout<<x<<","<<y<<std::endl; }};class Son:public Parent{//这里的public是继承方式 可以是publ
原创
发布博客 2021.07.16 ·
114 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Destructor|Cherno C++ Tutorials

原创
发布博客 2021.07.16 ·
79 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Constructor|Cherno C++ Tutorials

22
原创
发布博客 2021.07.15 ·
88 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Enum枚举类型|Cherno C++ Tutorials

#include <iostream>class Log{public: enum Level{ Error=0,Warning,Info };private: Level m_level=Info;//the prefix indicates member variable so you can differentiate it from local variablespublic: void Error_msg(const char .
原创
发布博客 2021.07.15 ·
119 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Static in C++|Cherno C++ Tutorials

https://www.bilibili.com/video/BV1VJ411M7WR?p=21Static variables or functions outside of Struct or Class (only in current translation unit?)static的变量和函数只对当前文件可见 不使用static不同文件如果同名会报错 全局变量 可以被所有文件使用You can't have two global variables with the same name
原创
发布博客 2021.07.15 ·
104 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++学习笔记|Log类|Cherno C++ Tutorials

Log类https://www.bilibili.com/video/BV1VJ411M7WR?p=20The Log class is for debugging purposes.The Console is something built into the operating system so it will always work.The code may need to be improved in future videos.#include <iostream>.
原创
发布博客 2021.07.14 ·
217 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

模板引擎 atr-template

emmm其实没怎么看懂 要去看看官方文档?在浏览器中的使用在浏览器和服务器端都可以使用首先需要安装在node中使用https://www.bilibili.com/video/av27670326/?p=25客户端和服务器端模板引擎的区别...
原创
发布博客 2019.09.14 ·
404 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多