2016年7月8日

linux下的网络配置

摘要: 一、ifconfig eth0 192.168.1.125/24 up 临时配置IP地址为192.168.1.125 并启用 二、route -n 查看网关 route add default gw 192.168.1.1(自己要添加的网关) route -n 查看网关 三、vi /etc/reso 阅读全文

posted @ 2016-07-08 16:26 Leang 阅读(163) 评论(0) 推荐(0)

实现一串字符串的的某一段替换

摘要: #include #include int input_array(char *ptr) { scanf("%s",ptr); getchar(); } int str_replace(char* ptra,char *ptrb,char *ptrc) { int reta = 0,retb = 0; int i = 0,j= 0,x = 0; char* pa = NULL; c... 阅读全文

posted @ 2016-07-08 14:30 Leang 阅读(767) 评论(0) 推荐(0)

导航