代码管理
文章平均质量分 62
YFaris
这个作者很懒,什么都没留下…
展开
-
std::sort导致内存崩贵
转载自:一次stl sort调用导致的进程崩溃 include <algorithm> bool comp(int d1, int d2) { return d1 >= d2; } const int N = 50; int main() { int d[N]; for(int i = 0; i < N; ++i) { d[i] = 20; } std::sort(d, d + N, comp); ret转载 2022-03-23 17:56:44 · 619 阅读 · 0 评论 -
mpi关于send/receive的顺序问题
引用(MPI buffered send/receive order) I’m using MPI (with fortran but the question is more specific to the MPI standard than any given language), and specifically using the buffered send/receive functions isend and irecv. Now if we imagine the following sce转载 2021-10-27 19:46:22 · 523 阅读 · 0 评论 -
ubuntu建立本地仓库并上传到gitee
转载自:原文链接:https://blog.csdn.net/weixin_45146520/article/details/109008282 1、新建本地工程仓库目录 2、使用命令使文件夹为本地仓库: git init 3、新建并获取gitee的仓库地址,git结尾,然后使用如下命令绑定:(推荐使用ssh,http需要每次输出用户名密码) git remote add origin 你的仓库git地址 如果这时候提示有报错,已经存在绑定,则使用下面命令解除绑定再执行上一步命令: git remote转载 2021-07-20 16:56:16 · 366 阅读 · 0 评论