自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(35)
  • 资源 (10)
  • 收藏
  • 关注

原创 WebApi Add standalone

WebApi XML response Add <?xml version="1.0" encoding="UTF-8" standalone="yes"?> WebApiConfig:config.Formatters.Add(newCustomXmlFormatter(){UseXmlSerializer=true});config.Formatters...

2019-09-03 17:16:38 127

转载 简单链表

C++单链表基本操作(代码) #include #include #include using namespace std; // list node structure typedef struct _NODE{ int data; struct _NODE *next; }NODE, *PNODE; // create a list,

2012-03-26 16:57:43 437

转载 对象池

对象池CTimeUtil.h#ifndef CTIMEUTIL_H#define CTIMEUTIL_H#if defined(_MSC_VER)#include #else#include #include #endiftypedef enum TIME_LEV{ MISEC_LEV, USEC_LEV};class CTimeUtil{

2012-03-26 16:48:53 434

转载 对象池

对象池/* ---------------------------------------------------------------- *//* Copyright 2005 (c) by RWTH Aachen - Lehrstuhl fuer Informatik VI *//* Richard Zens

2012-03-26 16:44:31 752

转载 对象池

smartpoint#ifndef __SMART_POINTER_H__#define __SMART_POINTER_H__template class SmartPointer{public: typedef T element_type; SmartPointer ():_object(NULL), _counter(NULL){} Sma

2012-03-26 16:38:26 418

转载 内存池

MemoryBlock.h#ifndef MEMORY_BLOCK#define MEMORY_BLOCKtypedef unsigned short USHORT;/////////////////////////////////////////////////////#include #include using namespace std;class MemoryB

2012-03-26 16:36:58 478

原创 求无需数组第K小的数及其位置

#include "stdafx.h"#include #include #include void swap(int & a, int & b);int find_position(int* a,int k, int low,int high);int find_orderk(int* a, int k, int low,int high);int MAXCOUNT = 10

2012-03-26 10:07:27 573

原创 求无序数组第K大的数值,及其所在的位置

求无序数组第K大的数值,及其所在的位置#include "stdafx.h"#include #include #include void swap(int & a, int & b);int find_position(int* a,int k, int low,int high);int find_orderk(int* a, i

2012-03-23 15:22:55 786

原创 求无序数组第K大小的数值

#include "stdafx.h"#include #include #include void swap(int & a, int & b);int find_position(int* a,int k, int low,int high);int find_orderk(int* a, int k, int low,int high);void swap(int & a

2012-03-22 16:01:56 614

原创 c++阿拉伯数字转中文字符

#include #include #include using namespace std;int getNum(){ int num; cout << "请输入一个数字:" << endl; // 从命令行输入这个浮点数 cin >> num; // 清除输入流状态标志 cin.clear(); r

2011-09-01 12:22:23 3133 2

原创 Log4c学习笔记

Log4c学习笔记自定义Logout自定义rollingpolicy

2010-11-23 15:11:00 4496 1

原创 HexString2Bytes

将16进制字符串转化为byte数组HexString2Bytes

2010-11-23 14:35:00 6035 1

原创 Bytes2HexString

将Byte转换为16进制字符串Bytes2HexString

2010-11-23 14:32:00 4632

原创 XML应用

/*****************************************************************************//** * @file        CTagFile.h * @brief        CTagFile クラスヘッダーファイル * * @author        Yan Hongwei * @date   

2009-09-18 22:42:00 621

原创 Socket封装12

#ifndef RESPONSEOPERATE_H#define RESPONSEOPERATE_H// #include // #include #include // #include "customer headers"#include "ServerSocket.h"#include "DataResponse.h"#include "Thr

2009-09-18 22:36:00 433

原创 Socket封装11

#ifndef DATARESPONSE_H#define DATARESPONSE_H// #include #include // #include // #include "customer headers"#include "Socket.h"/** * description */class DataResponse{

2009-09-18 22:34:00 426

原创 Socket封装10

#ifndef LISTENTHREAD_H#define LISTENTHREAD_H// #include // #include // #include "customer headers"#include "ServerSocket.h"#include "Thread.hpp"class ResponseThread;/**

2009-09-18 22:30:00 487

原创 Socket封装9

struct CommandHeader{    char CommandTag[4];     // 4    WORD CommandVersion;    // 2    WORD CommandID;         // 2    DWORD RequestID;        // 4    DWORD SendTime;         // 4    D

2009-09-18 22:24:00 565

原创 Socket封装8

#ifndef REQUESTOPERATE_H#define REQUESTOPERATE_H// #include // #include // #include "customer headers"#include "../sock/ClientSocket.h"#include "DataRequest.h"#include "../Thread

2009-09-18 22:21:00 510

原创 Socket封装7

#ifndef DATAREQUEST_H#define DATAREQUEST_H// #include #include #include // #include // #include "customer headers"//#include "../sock/Socket.h"#include "../SocketStruct.h"

2009-09-18 22:19:00 470

原创 Socket封装6

#ifndef SOCK_SERVERSOCKET_H#define SOCK_SERVERSOCKET_H// #include // #include // #include "customer headers"#include "Socket.h"namespace sock{    class ServerSocket : pub

2009-09-18 22:15:00 516

原创 Socket封装7

// SocketClient.cpp : Defines the entry point for the console application.//#include #include "stdafx.h"#include "ClientSocket.h"using namespace sock;int _tmain(int argc, _TCHA

2009-09-18 22:15:00 517

原创 Socket封装5

#ifndef SOCK_CLIENTSOCKET_H#define SOCK_CLIENTSOCKET_H// #include // #include // #include "customer headers"#include "Socket.h"namespace sock{    class ClientSocket : p

2009-09-18 22:14:00 352

原创 Socket封装4

// #include #include // #include #include #include // #include "customer headers"#include "Socket.h"namespace sock{    // statics#ifdef _WIN32    WSAInitial Socket::sWi

2009-09-18 22:12:00 466

原创 Socket封装3

#ifndef SOCK_SOCKET_H#define SOCK_SOCKET_H// #include #include // #include #ifdef _WIN32#include #pragma comment(lib, "Ws2_32.lib")#else#include #include #include #includ

2009-09-18 22:11:00 462

原创 Socket封装2

socket.cpp////////////////////////// #include #include // #include #include #include // #include "customer headers"#include "socket.h"namespace sock{#ifdef _WIN32    class WSAInitial    {    public:  

2009-09-18 22:06:00 654

原创 Socket封装

socket.h//////////////////////////#ifndef SOCK_SOCKET_H_#define SOCK_SOCKET_H_// #include #include // #include #ifdef _WIN32#include #pragma comment(lib, "Ws2_32.lib")#else

2009-09-18 22:04:00 709

原创 线程类封装(4)

#ifndef THREAD_EVENT_H_#define THREAD_EVENT_H_// #include #include // #include // #include #ifdef _WIN32#include #else#include #include #endif// #include "custom head

2009-09-18 22:03:00 406

原创 线程类封装(5)

#ifndef THREAD_MUTEX_HPP_#define THREAD_MUTEX_HPP_// #include // #include #ifdef _WIN32#include WINBASEAPI BOOL WINAPITryEnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection);

2009-09-18 22:03:00 429

原创 线程类封装(3)

ThreadPool.hpp #ifndef THREAD_THREADPOOL_HPP_#define THREAD_THREADPOOL_HPP_// #include #include #include // #include #include // #include // #include "custom headers"#i

2009-09-18 22:01:00 676 1

原创 线程类封装(2)

 threadImpl.hpp#ifndef THREAD_THREADIMPL_HPP_#define THREAD_THREADIMPL_HPP_// #include // #include #ifdef _WIN32#include #include #else#include #include #endif// #i

2009-09-18 22:00:00 471

原创 线程类封装(1)

thread.hpp #ifndef THREAD_THREAD_HPP_#define THREAD_THREAD_HPP_// #include #include // #include // #include "customer headers"#include "threadimpl.hpp"#include "mutex.hpp"

2009-09-18 21:54:00 464

原创 ENCODE封装

#ifndef ENCODE_HPP_#define ENCODE_HPP_#pragma warning(disable: 4786)#pragma warning(disable: 4996)// #include #include // #include #ifdef _WIN32#include #endif// #include "

2009-09-18 21:53:00 416

原创 CSV文件解析

#ifndef CSVFILE_HPP_#define CSVFILE_HPP_// #include // #include #include #include #include #include #include // #include // #include "customer headers"#include "string.

2009-09-18 21:35:00 512

原创 字符串类的封装

基于标准库的字符串操作的封装. #ifndef STRING_HPP_#define STRING_HPP_#pragma warning(disable: 4786)#pragma warning(disable: 4996)// #include #include #include #include #include #include #

2009-09-18 21:31:00 612

C/C++ Reference

Standard C Library C++ Standard Template Library Last modified on 6/23/2007

2010-08-03

C/C++库函数查询手册

General C/C++、Standard C Library、C++ Standard Template Library查询手册

2010-08-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除