摘要: #include <iostream> #include <memory> class Product { public: void setPartA(int partA) { this->partA = partA; } void setPartB(int partB) { this->partB 阅读全文
posted @ 2022-02-25 17:45 南乡水 阅读(31) 评论(0) 推荐(0)
摘要: #include <iostream> #include <memory> class ProductA { public: virtual void show() = 0; }; class ConcreteProductA1 : public ProductA { public: void sh 阅读全文
posted @ 2022-02-25 17:44 南乡水 阅读(22) 评论(0) 推荐(0)
摘要: #include <iostream> #include <memory> class Product { public: virtual void show() const { std::cout << "In Product show()." << std::endl; } }; class C 阅读全文
posted @ 2022-02-25 17:32 南乡水 阅读(36) 评论(0) 推荐(0)
摘要: linux中查找命令至少包括:which,whereis,locate,find,grep五种。通过man这五种命令,可以知道它们各自的用法。 命令查找: which:在PATH中查找可执行文件。 $ cd / $ which ls /bin/ls whereis:查找二进制文件、源文件和man文档 阅读全文
posted @ 2022-01-27 18:09 南乡水 阅读(61) 评论(0) 推荐(0)
摘要: 我在使用Git连接到远程仓库的过程中,有时会遇到各种权限认证错误。基本上可以按照下面方法重新建立连接: 1、首先安装ssh: sudo apt update sudo apt upgrade sudo apt-get install openssh-server 2、然后生成ssh的秘钥: ssh- 阅读全文
posted @ 2021-12-29 10:40 南乡水 阅读(330) 评论(0) 推荐(0)
摘要: 清楚dangling image:docker system prune --all --force --volumes 清理所有image:docker stop $(docker container ls -a -q) && docker system prune --all --force - 阅读全文
posted @ 2019-12-30 18:59 南乡水 阅读(1720) 评论(0) 推荐(0)
摘要: 在Linux中通过源码安装C++软件分3步: 1. ./configure,默认情况下,可执行文件放在/usr /local/bin,库文件放在/usr/local/lib,配置文件放在/usr/local/etc,其它的资源文件放在/usr /local/share。可以通过参数--prefix, 阅读全文
posted @ 2019-10-18 10:59 南乡水 阅读(621) 评论(0) 推荐(0)
摘要: What is your first plan of action when working on a new competition? 理解竞赛,数据,评价标准。 建立交叉验证集。 制定、更新计划。 检索类似竞赛和相关论文。 What does your iteration cycle look 阅读全文
posted @ 2019-06-25 15:43 南乡水 阅读(229) 评论(0) 推荐(0)
摘要: /etc/passwd:存储用户账户信息存储格式为,name:password:UID:GID:comment:directory:shell /etc/shadow:存储用户密码信息存储格式为,登录名:$加密算法$salt$加密了的密码:最后一次更改密码的日期:密码最小期限:密码最大期限:密码警告 阅读全文
posted @ 2019-06-24 17:23 南乡水 阅读(124) 评论(0) 推荐(0)
摘要: apt-get换源: 把/etc/apt/sources.list中内容替换为 #清华源 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiversedeb-src https: 阅读全文
posted @ 2019-01-11 12:56 南乡水 阅读(514) 评论(0) 推荐(0)