上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: 最近复盘Linux,博客记录下吧 常用目录处理命令: mkdir 创建目录(-p 递归创建)cd 切换目录pwd 显示当前目录rmdir 删除空目录(一般用不到,直接用rm了)cp 复制目录或文件(-r 复制目录,-p 保留文件属性)mv 剪切文件,改名(在同一目录下移动即改名)rm 删除文件、目录 阅读全文
posted @ 2022-12-28 21:06 balabalahhh 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 182.查找重复的电子邮箱 i. 1 # Write your MySQL query statement below 2 SELECT 3 Email 4 FROM 5 Person 6 GROUP BY Email 7 HAVING COUNT(Email) > 1 ii.哈哈,这个属实是重复了 阅读全文
posted @ 2022-12-28 18:00 balabalahhh 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 一.函数性质 “exec函数族提供了一个在进程中启动另一个程序执行的方法。它可以根据指定的文件名或目录名找到可执行文件,并用它来取代原调用进程的数据段、代码段和堆栈段,在执行完之后,原调用进程的内容除了进程号外,其他全部被新的进程替换了” 二.函数使用 使用exec函数族主要有两种情况: (1)当进 阅读全文
posted @ 2022-11-26 14:54 balabalahhh 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 本文都是在相对路径下 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:25 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) 编辑
上一页 1 2 3 4 5 6 7 ··· 13 下一页