摘要: 本文都是在相对路径下 1.想让别名永久生效就要写入~/.bashrc文件中 例:把lls设为ls的别名并永久生效 将 alias lls='ls' 添加到文件末尾 2.想让环境变量永久生效就要写入配置文件中~/.bash_profile 或者 /etc/profile中 例:将 /usr/local 阅读全文
posted @ 2022-11-23 21:35 balabalahhh 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <map> 3 #include <cstdio> 4 #include <cmath> 5 using namespace std; 6 7 //key:实力值power value:id号 8 int main(){ 9 map< 阅读全文
posted @ 2022-11-23 20:29 balabalahhh 阅读(28) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <map> #include <cstdio> #include <cmath> using namespace std; //key:实力值power value:id号 int main(){ map<int,int> members; 阅读全文
posted @ 2022-11-23 20:29 balabalahhh 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <set> 3 #include <cstdio> 4 using namespace std; 5 bool wasAdd[100001]; 6 7 int main(){ 8 multiset<int> mset; 9 int n 阅读全文
posted @ 2022-11-23 20:27 balabalahhh 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <list> 3 #include <string> 4 #include <cstdio> 5 using namespace std; 6 const int N = 10001; 7 8 int main() 9 { 10 in 阅读全文
posted @ 2022-11-23 20:26 balabalahhh 阅读(54) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <list> #include <string> using namespace std; template <class T1,class T2> void Copy(T1 s,T1 e, T2 x) { for(; s != e; ++s 阅读全文
posted @ 2022-11-23 20:24 balabalahhh 阅读(32) 评论(0) 推荐(0) 编辑
摘要: #include <cstdio> #include <iostream> #include <algorithm> #include <list> using namespace std; int main() { double a[] = {1.2,3.4,9.8,7.3,2.6}; list< 阅读全文
posted @ 2022-11-23 20:24 balabalahhh 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 偶然看别人的题解了解到的(std::function是从C++11开始支持的特性) 在学function用法之前可以先了解一下C语言的函数指针,然后这里面还有类模板template、lambda表达式和重载方面的知识 function<void(TreeNode*)> DFS = [&] (Tree 阅读全文
posted @ 2022-11-23 20:20 balabalahhh 阅读(803) 评论(0) 推荐(0) 编辑
摘要: centos7(最小化安装),基本上每种方法都用了,最后一种办法成功的 yum无法使用解决方法(比较全,以后如果遇到别的问题还会添加) - 王章章章 - 博客园 (cnblogs.com) 阅读全文
posted @ 2022-11-23 15:38 balabalahhh 阅读(48) 评论(0) 推荐(0) 编辑
摘要: “不同的进程访问同样的逻辑地址而对应的物理地址不同,是由于各自页表的不同。linux系统下每个进程都拥有自己的页表,父进程fork出新的子进程时,子进程拷贝一份父进程的页表,且父子进程将页表状态修改为写保护。当父进程或子进程发生写操作时将会发生缺页异常,缺页异常处理函数将会为子进程分配新的物理地址“ 阅读全文
posted @ 2022-11-23 15:16 balabalahhh 阅读(96) 评论(0) 推荐(0) 编辑