板子 大王sample cpp

AT2505板子调试

1、连接J-Link 在这个目录下说命令找不到 JLinkGDBServer -device Star sudo dpkg -i *.deb 2、连接串口打印线(TX-RX, RX-TX,GND-GND) sudo minicom -D /dev/ttyUSB0 打开串口调试窗口 3、仿真 注意:J ......
板子 2505 AT

prometheus Error on ingesting samples that are too old or a re too far into the future

目录prometheus Error on ingesting samples that are too old or a re too far into the future磁盘问题时间问题版本问题历史prometheus旧数据 prometheus Error on ingesting samp ......
prometheus ingesting too samples future

CPP操作符重载:operator T()

operator T()提供了一个本类型到T的隐式转换,不允许使用参数 `class B { private: int _b; public: B(int b):_b(b){} ~B(){} const int getB()const{return _b;} bool operator ==(B& ......
操作符 operator CPP

封装高精板子

#include<bits/stdc++.h> using namespace std; const int maxn=5005; struct bign { int len, s[MAXN]; bign () { memset(s, 0, sizeof(s)); len = 1; } bign ( ......
高精 板子

一些可能用得上的板子

复数模板 struct Complex{ double r,i;//real part , imaginary part Complex(double r = 0,double i = 0) : r(r),i(i) {}//abc怎么你了? Complex operator+(const Compl ......
板子

【找到 Anchor-based and Anchor-free 性能差距的本质】Adaptive Training Sample Selection (ATSS) 论文精读

原始题目:Bridging the Gap Between Anchor-based and Anchor-free Detection via Adaptive Training Sample Selection 中文翻译:通过 自适应训练样本选择 缩小 Anchor-based and Anch ......

MITK编译错误C2220 mitkLabelSetImageToSurfaceFilter.cpp

错误 C2220 以下警告被视为错误 (编译源文件 E:\0_MITK\MITK\Modules\Multilabel\mitkLabelSetImageToSurfaceFilter.cpp) [E:\0_MITK\MITK\SuperBuild\MITK-build\Modules\Multil ......

c++ .h头文件和.cpp源文件关系(转)

https://www.cnblogs.com/fengzhengfly/p/8884581.html https://blog.csdn.net/qq_35452533/article/details/77282326 头文件是声明,源文件是定义 在cpp里包含.h,就会包含该h文件的cpp定义, ......
源文件 文件 cpp

pgsql create table,cpp fill psql table via the third party library pqxx

//create table t1; create table t1(id bigserial not null primary key,author varchar(40) not null,comment varchar(40) not null,content varchar(40) not ......
table library create pgsql party

二分板子的一个易错点

while (l <= r) { mid = l + (r - l) >> 1; ...... } 这样是错误的! 由于>>的优先级问题,应用如下格式。 while (l <= r) { mid = l +( (r - l) >> 1); ...... } ......
板子

板子

MillerRabin 点击查看代码 int test[10]={0,2,3,5,7,11,13,17,19,23}; int qpow(int x,int p,int mod){ int ans=1; while(p){ if(p&1) ans=(ans*x)%mod; x=(x*x)%mod; ......
板子

cpp: vs 2022 文件头注释插件

下载插件安装 Doxygen Commentshttps://marketplace.visualstudio.com/items?itemName=FinnGegenmantel.doxygenComments 在工具--选项 进行设置 ......
注释 插件 文件 2022 cpp

[侯捷_CPP面向对象高级开发_上] 1 CPP编程简介

1. 需要具备的基础 曾经学过某种 procedural language (c) 变量 variables 类型 types :int、float、char、struct 作用域 scope 循环 loops :while、for 流程控制 :if-else、switch-case 知道一个程序需 ......
CPP 对象 简介

【Cpp 语言基础】vector<int>::size_type死循环问题

今天写了一个将数组倒序打印出来的程序,用到了 vector<int>::size_type 类型但是出现了错误。 错误的原因:size_type是unsigned int类型不会减为负值。在for() 循环 index--下,由于size_type永不为负, index >=0 永远成立。 解决办法 ......
语言基础 size_type 语言 基础 vector

cpp笔记

cpp笔记 请见: ​ 序言 现代 C++ 教程: 高速上手 C++ 11/14/17/20 - Modern C++ Tutorial: C++ 11/14/17/20 On the Fly (changkun.de) 1. 指针常量和常量指针 1.指针常量:不能修改指针所指向的地址。定义同时必须 ......
笔记 cpp

Paper Reading: Sample and feature selecting based ensemble learning for imbalanced problems

为了克服现有集成方法的缺点,本文提出一种新的混合集成策略——样本和特征选择混合集成学习 SFSHEL。SFSHEL 考虑基于聚类的分层对大多数样本进行欠采样,并采用滑动窗口机制同时生成多样性的特征子集。然后将经过验证训练的权重分配给不同的基学习器,最后 SFSHEL 通过加权投票进行预测。SFSHE... ......

ubuntu vscode setting.json,c_cpp_properties.json

//settings.json { "configurations": [ { "name": "Linux", "includePath": [ "${workspaceFolder}/**", "/usr/include/c++/13", "/usr/include/x86_64-linux-g ......

Metropolis Algorithms for Representative Subgraph Sampling

目录概主要内容Metropolis graph sampling H\¨{u}bler C. and Kriegel H., Borgwardt K. and Ghahramani Z. Metropolis algorithms for representative subgraph sampli ......

QT mocs_compilation.cpp 中出现多重定义问题

在qt自动生成moc时,报自动生成的cpp中的方法重定义 redefinition of ‘const QMetaObject* xxx::metaObject() const’等等 查看mocs_compilation.cpp 发现其中有两行一样的cpp,这种情况大家可能会第一时间去排查是不是 . ......
mocs_compilation compilation 问题 mocs cpp

板子哲学康复练习

开学后第一次用 Windows 打代码,有种唐氏儿的美。 Tarjan tarjan 求强连通 不知道有没有过编,但大概没错。 Miku's Code #include<bits;/stdc++.h> #define rg register int #define il inline il int ......
板子 哲学

这是板子,它很可爱

杰斯对拍&数据生成器 树生成器 #include<bits/stdc++.h> using namespace std; const int mod=1e9; const int N=1e6+5; int n,m=10; int d[N],p[N]; vector<pair<int,int>> a; ......
板子 这是

Unity 打包il2cpp模式时的常见问题分析

Unity 编辑器模式下是采用.net 虚拟机解释执行.net 代码,发布的时候有两种模式,一种是mono虚拟机模式,一种是il2cpp模式。由于iOS AppStore规定不允许使用虚拟机,所以发布到iOS,Unity采用了il2cpp技术,把IL(.net字节码) 的代码转成c++代码,然后再用 ......
常见问题 常见 模式 il2cpp 问题

Sampling from Large Graphs

目录概主要内容 Leskovec J. and Faloutsos C. Sampling from large graphs. KDD, 2006. 概 讨论了不同稀疏化方法对于 large-graph 的`结构' 的保持. 主要内容 作者本文的目的是希望比较不同的'稀疏化'方法: 利用一些方法从 ......
Sampling Graphs Large from

BST-Treap名次树指针实现板子 Ver2.0

为了更好的阅读体验,请点击这里 这里只有板子没有原理QWQ 可实现 1.插入 x 数 2.删除 x 数(若有多个相同的数,只删除一个) 3.查询 x 数的排名(排名定义为比当前数小的数的个数 +1) 4.查询排名为 x 的数 5.求 x 的前驱(前驱定义为小于 x,且最大的数) 6.求 x 的后继( ......
板子 名次 指针 BST-Treap Treap

板子合集

板子索引 火车头 #include <iostream> #include <cstdio> #include <iomanip> #include <cmath> #include <bitset> #include <algorithm> #include <set> #include <uno ......
板子

考点列表(附板子)

我不能白给啊啊啊啊啊!!!!! 我会在这里将最近的考到的知识点罗列,也当是快速复习与刷题计划吧。 Part1 数论相关 计数类 Lucas定理 点击查看代码 const int Mod = ?; int powM(int x, int y = Mod-2) { int ret = 1; while ......
板子 考点

CPP(正则表达式)

例如下面的代码,使用正则表达式去搜索 test_str 中第一个内容放回 results 中regex_search(test_str, results, r);所以我们需要构造 正则表达式 r构造方法:例如我们需要搜索的目标是 std::string 类型的 test_str = "receipt ......
正则 表达式 CPP

板子

线段树 #include<bits/stdc++.h> using namespace std; struct node { int l,r; long long pre,add,chen; } t[1000000]; long long a[1000000]; long long n,m,mod; ......
板子

各种OI板子

以下内容不定时更新,想到啥写啥。。 读写优化 快读 code template <class T> inline void read(T &res) { char ch = getchar(); bool f = 0; res = 0; for(; !isdigit(ch); ch = getcha ......
板子

cpp中函数参数的默认值

title: aliases: tags: - cpp/函数 category: - 方法 stars: url: creation-time: 2023-10-09 19:24 modification-time: 2023-10-10 14:20:19 [[Cpp]] 函数的默认值写法: voi ......
函数 参数 cpp