
HeroKing, 编码爱好者
安装 Visual Studio
社区版本 选择C++桌面程序
组件包 新建C++项目即可
在源文件目录下右键新增文件 选择文件类型
#include <iostream>
using namespace std;
/*
入口函数
有且仅有一个
*/
int main() {
cout << "Hello World\n";
cout << "Hello World" << endl;
int age = 10;
// sizeOf 统计数据类型占用的空间
cout << sizeof(age) << endl;
// 字符类型只能使用单引号;长度只能是1
char ch = 'a';
cout << ch << endl;
// 常量
const int count = 500;
// C++区分大小写 语句分隔符;
// float类型需要添加f表示是float类型 默认是double类型
float f1 = 3.14f;
// 科学计数法表示
double d1 = 2e3; // 2*10^3
// 浮点数默认输出长度是6位
double d2 = 3.1415926;
cout << "d2 value: " << d2 << endl;
string str = "小灰灰";
cout << str << endl;
//无限循环
/*for (; ; )
{
printf("This loop will run forever.\n");
}*/
// 指针p指向age变量的内存地址 &变量 代表取变量的物理地址
int* ip = &age;
// 输出在指针变量中存储的地址
cout << "Address stored in ip variable: ";
cout << ip << endl;
// 访问指针中地址的值
cout << "Value of *ip variable: ";
cout << *ip << endl;
system("pause");
return 0;
}
https://github.com/PaddlePaddle/PaddleOCR?tab=readme-ov-file
~~https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/doc/doc_ch/environment.md~~
参考 https://gitee.com/ShengSanYi/CS-Xmind-Note 408 专业课笔记 需要认真学习
无序表线性查找的平均查找次数是 n+ 1 /2
有序表折半查找的平均查找次数是 log2(n + 1) - 1
hash 表查找 完全没冲突的次数是 O(1)
冲突
装填因子 α(存储的序列长度 / hash 表能存储的总长度)
拉链法解决冲突: ASL ≈ 1 + α/2 线性探测法: (1 + 1/ (1- α)) / 2
延迟(分组从信息员发送到目的地的所需的时间)
参考链接: 汤姆大叔 https://www.cnblogs.com/TomXu/archive/2011/12/28/2286877.html
W3C https://www.w3cschool.cn/deep_learn_javascript/deep_learn_javascript-1sry284r.html
如何成为一个全栈工程师? 前端开发何去何从