摘要: //获取本机的公网IP public static string GetIP() { string tempip = ""; WebRequest request = WebRequest.Create("http://ip.qq.com/"); request.Timeout = 10000; WebResponse response = request.GetResponse(); Stream resStream = response.GetRespo... 阅读全文
posted @ 2012-12-05 15:16 cryking 阅读(3654) 评论(0) 推荐(0)
摘要: 核心处理方法如下:int num = 0, pos = 0, startPos = 0; foreach (char c in tmpIn) { if (',' == c) num++; if ((num + 1) % 800 == 0 && c == ',') { ctrlIn = ctrlIn + inCode + " in ('" + tmpIn.Substring(start... 阅读全文
posted @ 2012-11-22 11:26 cryking 阅读(564) 评论(0) 推荐(0)
摘要: 没事无聊写着玩的,也就是熟练运用API而已,没什么技术可言... 1 #include <windows.h> 2 #include <algorithm> 3 #include <iostream> 4 #include <iomanip> 5 #include <fstream> 6 #include <string> 7 using namespace std; 8 static int count=0; //记录文件个数 9 10 void FindInAll(string & Path,fstream & 阅读全文
posted @ 2012-11-13 11:51 cryking 阅读(1006) 评论(0) 推荐(0)
摘要: C#连接数据库方法 阅读全文
posted @ 2012-11-13 11:30 cryking 阅读(550) 评论(0) 推荐(0)