摘要: 装完ubuntu系统后,找不到启动文件所在分区 用过U盘进入ubuntu试用模式 无线网卡连接网络 打开终端,添加boot-repair所在的源 sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update 安装b 阅读全文
posted @ 2022-11-26 21:54 TTTCoder 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 步骤 添加路由信息 sudo ip route add default via 192.168.101.1 百度ping不同,配置域名解析 1 sudo vim /etc/resolvconf/resolv.conf.d/base 2 nameserver 8.8.8.8 3 nameserver 阅读全文
posted @ 2022-10-21 17:24 TTTCoder 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 #include <string> 5 #include <cstdio> 6 using namespace std; 7 int a[100010]; 8 int 阅读全文
posted @ 2022-05-12 10:51 TTTCoder 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 一、彩票中奖。 彩票中奖的规则为购彩票的后x位与公布的中奖号码的后x位相同 第一行输入两个数n和m分别表示买的初始彩票号,和连续的m个彩票。 接下来多行,每行若干个整数,第一个整数表示x,中奖彩票的位数x,其余的整数表示中奖的号码的后x位。 读入以END表示结束 如果没有中奖输出“NO” 如果中奖, 阅读全文
posted @ 2022-04-17 20:59 TTTCoder 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1 #ifndef PPX_BASE_MEMORY_POOL_H_ 2 #define PPX_BASE_MEMORY_POOL_H_ 3 4 #include <climits> 5 #include <cstddef> 6 #include <mutex> 7 8 namespace ppx { 阅读全文
posted @ 2022-04-14 09:49 TTTCoder 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 问题: 1、无法远程连接Virtual box内虚拟机,网络ping不通 解决方法,设置端口转发。选择网络按钮,选中网卡,连接方式选择NAT,接入网线,端口转发 配置名称,主机端口号为9022(未被占用的都可以),子系统端口号为22(必须是22)。 然后就可以远程连接了 //主机SSH连接虚拟机,其 阅读全文
posted @ 2021-11-19 21:23 TTTCoder 阅读(1176) 评论(0) 推荐(0) 编辑
摘要: find .|xargs grep -ri "要查找的字符串" 阅读全文
posted @ 2021-07-06 09:56 TTTCoder 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cmath> 3 using namespace std; 4 5 int a[1020]; 6 7 void fix(int a[], int i, int n) 8 { 9 int l = 2 * i, r = 2 * i + 阅读全文
posted @ 2021-06-22 11:04 TTTCoder 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Package microtype Error: Font expansion does not work with xetex. \begin{document} 解决方法:把下面的包注释掉 \usepackage[protrusion=true, expansion=true]{microtyp 阅读全文
posted @ 2021-06-09 16:20 TTTCoder 阅读(749) 评论(0) 推荐(0) 编辑
摘要: 一、管道定义 当从一个进程连接数据流到另一个进程时,我们使用管道(pipe)。 二、进程管道 1、popen函数(在两个程序之间数据传递) 原型 1 #include <stdio.h> 2 FILE *popen(const char *command, const char *open_mode 阅读全文
posted @ 2021-06-08 11:16 TTTCoder 阅读(227) 评论(0) 推荐(0) 编辑