shell趣味编程:求两数最大公因数

#!/bin/bash # read -p "please input 2 number: " var1 var2 if [ $var1 -gt $var2 ];then …

深度优先算法—取特定的全排列

题目: setA= {0,3,4,6,8}; setB= {1,2,5,7,9}; 从集合A和集合B中分别取数字(不能只从一个集合取),共取3个数字。 打印所有结果。 #include <…

Linux系统编程复习

@@@@cpu如何操作内存? ①通过地址总线告诉内存控制器。在什么地方操作数据 ②控制总线,发送读/写的信号 ③数据总线,传送数据 --------------------------------…

Socket PRGM: chat_1Vn

//client.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include &lt…

Socket PRGM: chat_p2p

//client_p2p #include <stdio.h> #include <stdlib.h> #include <string.h> #include &…

SimpleSniffer

/***************SimpelSniffer.c*************/ #include <stdio.h> #include <unistd.h> #in…

git学习

===================client端初始化===================: # git config --global user.name "willku"…

基于Linux的Tcp端口扫描器的实现

#include <stdio.h> #include <time.h> #include <stdlib.h> #include <string.h>…

鹅厂一面题目总结

1,将/tmp目录下的.sh结尾的文件所有改为.bash 原:find /tmp -name “*.sh” -exec mv {} {}.bash \; 改:find /tmp -name “*.sh…

Python 加 tab

#python add tab #python startup file import sys import readline import rlcompleter import atexit imp…