摘要: 1 //list参考 2 3 #ifndef MYLIST_INC 4 #define MYLIST_INC 5 6 #include 7 8 template 9 class MyList 10 { 11 public: 12 MyList(void) 13 { ... 阅读全文
posted @ 2015-12-01 23:04 迷城有你 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1 //读写bmp图像,好久的前写的,放这做记录吧 2 3 4 //h 5 #pragma once 6 #include 7 using std::string; 8 9 class BmpRW 10 { 11 public: 12 BmpRW(void); 1... 阅读全文
posted @ 2015-12-01 22:31 迷城有你 阅读(443) 评论(0) 推荐(0) 编辑
摘要: mv src dest 移动cp src dest 复制mkdir file 创建rm src 删除rm -rf src 遍历删除unzip phpbb.zip 解压tar xvf wordpress.targzip -d ge.tar.gz//如果权限不够sudo cp src dest//查看所... 阅读全文
posted @ 2015-12-01 18:44 迷城有你 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1.centos5.8环境 http://ixdba.blog.51cto.com/2895551/13687922.thrift安装 http://www.tuicool.com/articles/7B7z6n2.thrift介绍 http://blog.csdn.net/guxch/art... 阅读全文
posted @ 2015-12-01 18:44 迷城有你 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 本地登录:mysql -uroot -pwujingtao//存储过程use tlbbdb;delimiter //drop procedure if exists test//create procedure test(out s int)begin select count(*) into s ... 阅读全文
posted @ 2015-12-01 18:43 迷城有你 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1.cmd->telnetopen www.baidu.comGET /index.html HTTP/1.1Host: www.baidu.com回车cmd->telnetopen www.baidu.comHEAD /index.html HTTP/1.1Host: www.baidu.com回... 阅读全文
posted @ 2015-12-01 18:42 迷城有你 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 详细帮助介绍http://wenku.baidu.com/link?url=GrJF-qjHMTKlTRqiSHSbvHmaGIL7kX9N4eXRmVzgCd06_3QyaZpDJHUYrdR_xl69AY2v4Rsc7JCBjEpg3uF8rqZ6qtiV-bP5qhOyh1KeaUydoxyg... 阅读全文
posted @ 2015-11-30 22:46 迷城有你 阅读(245) 评论(0) 推荐(0) 编辑
摘要: //每个想学socket的,都想了解或实现socket通信是怎样,我原来也是。不过还是一直没做过聊天工具。//以下简单实现下。用了pthread线程库(学linux下的库挺简单的,书上全介绍了,感觉没windows那么繁琐)//可以跟上一篇select读写(3)通信 1 #include 2 ... 阅读全文
posted @ 2015-11-24 18:35 迷城有你 阅读(299) 评论(0) 推荐(0) 编辑
摘要: //简单的select,看看select介绍,多抄抄实现简单select 1 #include 2 using namespace std; 3 4 #include 5 #pragma comment(lib, "ws2_32.lib") 6 7 #include "incl... 阅读全文
posted @ 2015-11-24 18:33 迷城有你 阅读(233) 评论(0) 推荐(0) 编辑
摘要: //linux和windows下的select有点不同。上一篇简单的select(2)可以对比下。//baidu了下select的write很少有实现的,所以自己实现了下。#include using namespace std;#ifdef WINDOWS_SOCK#include #pragma... 阅读全文
posted @ 2015-11-24 18:33 迷城有你 阅读(648) 评论(0) 推荐(0) 编辑