- 博客(18)
- 资源 (38)
- 收藏
- 关注
转载 c++读csv
csvparser.h#ifndef __CSVPARSE_H_2001_06_07__#define __CSVPARSE_H_2001_06_07__#include using namespace std;class CSVParser { private: string m_sData; string::size_type m_nPos; void Skip
2014-01-21 14:09:56 2624
转载 time_t 的使用
#include "stdafx.h"#include #include #include using namespace std;bool GetCurrTime(char* lpszTime){ time_t rt={0}; tm* ptmInfo=NULL; try { time(&rt); ptmInfo=localtime(&rt); spri
2014-01-08 11:04:57 1482
转载 ace 读取ini
// read_ini.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;#pragma comment(lib,"aced.lib")int ReadFromIni(const char* szIni);int _tma
2014-01-06 16:35:03 833
转载 select 模型例子代码
res:http://blog.csdn.net/pcsuite/article/details/6191133C++代码 、客户端代码#include "stdafx.h" #include #include #pragma comment(lib, "ws2_32.lib") #define SERVER_ADDRESS "192.168.10.56
2014-01-06 11:55:41 945
转载 TCP/IP 网络数据封包和解包
TCP/IP 网络数据以流的方式传输,数据流是由包组成,如何判定接收方收到的包是否是一个完整的包就要在发送时对包进行处理,这就是封包技术,将包处理成包头,包体包头是包的开始标记,整个包的大小就是包的结束标记。接收方只要按同样的方式解包即可,下面是我在网上搜罗的一个网络服务端和客户端程序代码。客户端和服务端共享的文件:(数据包的定义)#pragma once#define
2014-01-06 11:48:37 19724 1
转载 ace 客户端&服务器端(c++)
res:http://mavlarn.iteye.com/blog/987598server:// ace_frame_classImpl.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #include #include #include #
2014-01-05 20:41:53 1790
原创 callback function
author:郑金玮time:2013-11-16function:实现回调函数的测试用例平台:windows环境:vs2012语言:c++*/#include "stdafx.h"#include #include #include using namespace std; //回调函数声明typedef int (*callbackfunc)(int inde
2014-01-05 13:15:50 1078
转载 va_start
// printf_va_list.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include void Print(const char* fmt,...){ va_list ap; va_start(ap,fmt); vfprintf(stderr,fmt,ap); va_end(ap);}
2014-01-04 14:24:03 753
转载 MD5
// MD5.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #include #include typedef unsigned char *POINTER; typedef unsigned short in
2014-01-04 13:45:44 684
转载 解析例子
// xml_test1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include "pugixml.hpp"#pragma comment(lib,"pugixmld.lib") int _tmain(int argc, _TCHAR* argv[]){ pugi::xml_
2014-01-03 17:37:38 1027
原创 pugixml 开篇
官网:http://pugixml.org/测试案例:xml文件hellocpp文件// ConsoleApplication4_pugixml_test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "windows.h"#include "pugixml.hpp"#include
2014-01-03 16:02:44 1108
转载 ace_task
res:http://www.cnblogs.com/TianFang/archive/2006/12/05/583231.html#include "ace/Task.h"#include "ace/OS.h" #include using namespace std;class TaskThread: public ACE_Task{public: virtual in
2014-01-03 12:01:18 596
原创 ace_time
// ace_time.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include#include #include #include #include using namespace std;#pragma comment(lib,"aced.lib")int _tmain(int argc
2014-01-03 11:00:09 2331
原创 strtok
// strtok_test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ char str[]="天策,男,19900912,安徽"; char *nex
2014-01-02 20:02:31 579
原创 stl map
// map.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ map mapStudent; mapStudent.insert(map::value_
2014-01-02 20:01:05 601 1
转载 C API 访问mysql
// mysql_access.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #pragma comment(lib, "ws2_32")#include #pragma comment(lib, "libmysql.lib")int main(int argc, char* a
2014-01-02 18:21:43 809
转载 IOCP 简单服务器和客户端
// iocp_client.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #pragma comment(lib, "ws2_32.lib")#include void main(){ WORD wVersionRequested; WSADATA wsaData; int err; wVersionRequested
2014-01-02 14:31:27 675
转载 ace TCP 服务端和客户端简单程序
// ace_tcp_server.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #include #include using namespace std;#pragma comment(lib,"aced.lib")#pragma comment(lib,"a
2014-01-02 14:10:29 2744
如鹏网ODBC数据库驱动链接工具
2012-10-29
jinwei_nodejs_express
2015-12-30
lua http 例子代码
2015-06-08
lua学习工具
2014-04-02
pugixml 库
2014-01-04
MFC 版音乐播放器
2013-10-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人