原创 Socket封裝3
#ifndef SOCK_SOCKET_H #define SOCK_SOCKET_H // #include <standard library headers> #include <string> // #include <other
原创 線程類封裝(1)
thread.hpp #ifndef THREAD_THREAD_HPP_ #define THREAD_THREAD_HPP_ // #include <standard library headers> #include <ass
原创 線程類封裝(3)
ThreadPool.hpp #ifndef THREAD_THREADPOOL_HPP_ #define THREAD_THREADPOOL_HPP_ // #include <standard C library headers>
原创 ENCODE封裝
#ifndef ENCODE_HPP_ #define ENCODE_HPP_ #pragma warning(disable: 4786) #pragma warning(disable: 4996) // #include <stan
原创 線程類封裝(2)
threadImpl.hpp #ifndef THREAD_THREADIMPL_HPP_ #define THREAD_THREADIMPL_HPP_ // #include <standard library headers>
原创 線程類封裝(5)
#ifndef THREAD_MUTEX_HPP_ #define THREAD_MUTEX_HPP_ // #include <standard library headers> // #include <other library h
原创 字符串類的封裝
基於標準庫的字符串操作的封裝. #ifndef STRING_HPP_ #define STRING_HPP_ #pragma warning(disable: 4786) #pragma warning(disable: 4996)
原创 Socket封裝
socket.h ////////////////////////// #ifndef SOCK_SOCKET_H_ #define SOCK_SOCKET_H_ // #include <standard library headers
原创 Socket封裝4
// #include <standard library headers> #include <iostream> // #include <other library headers> #include <errno.h> #incl
原创 Socket封裝2
socket.cpp////////////////////////// #include <standard library headers>#include <iostream>// #include <other library h
原创 Socket封裝5
#ifndef SOCK_CLIENTSOCKET_H #define SOCK_CLIENTSOCKET_H // #include <standard library headers> // #include <other libr
原创 線程類封裝(4)
#ifndef THREAD_EVENT_H_ #define THREAD_EVENT_H_ // #include <standard C library headers> #include <time.h> // #include
原创 WebApi Add standalone
WebApi XML response Add <?xml version="1.0" encoding="UTF-8" standalone="yes"?> WebApiConfig: config.Formatters.A
原创 內存池
MemoryBlock.h #ifndef MEMORY_BLOCK #define MEMORY_BLOCK typedef unsigned short USHORT; /////////////////////////////
原创 求無序數組第K大小的數值
#include "stdafx.h" #include <time.h> #include <stdio.h> #include <stdlib.h> void swap(int & a, int & b); int find_po