自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

wangzhicheng2013的专栏

王志成IT心路历程

  • 博客(12)
  • 资源 (14)
  • 收藏
  • 关注

原创 元编程应用-判读容器类型

#include <iostream> #include <string> #include <vector> #include <map> #include <unordered_map> #include <list> #include <queue> #include <deque> #incl...

2019-09-16 21:04:14 234

原创 google benchmark应用

#include <string.h> #include <iostream> #include <set> #include <string> #include <benchmark/benchmark.h> #define SAFE_DEL(ptr) { if (ptr) delete ptr; ptr = nullptr; } t...

2019-09-07 15:15:31 519

原创 线程安全ring buffer

#include <iostream> #include <string> #include <vector> #include <atomic> struct SpinLock { SpinLock(std::atomic_flag &flag) : flag_(flag) { while (true == fla...

2019-09-04 11:20:48 599

原创 huffman树

#include <iostream> #include <vector> struct huffman_element { huffman_element() { weight = 0; lchild = -1; rchild = -1; parent = -1; } double ...

2019-09-27 20:15:01 90

原创 元编程应用-简单AOP

#include <iostream> #include <type_traits> #define HAS_MEMBER(member)\ template<typename T, typename... Args> \ struct has_member_##member { \ private:\ template<typename U&g...

2019-09-24 16:35:21 122

原创 元编程应用-判读一个类是不是含有foo方法

#include <iostream> #include <type_traits> template <typename T, typename ...Args> struct has_member_foo { private: template <typename U> static auto Check(int) -> ...

2019-09-24 14:57:06 141

原创 memory buffer

#include <iostream> #include <vector> #include <algorithm> class MemoryBuffer { public: explicit MemoryBuffer(size_t len) : buffer_(len, 0) { } virtual ~MemoryBuffer() =...

2019-09-19 11:30:07 815

原创 测试reference_wrapper

#include <iostream> #include <functional> void add(int a, int b, int &r) { r = a + b; } int main() { int r = 0; auto f = std::bind(add, std::placeholders::_1, 20, std::ref...

2019-09-17 14:07:14 238

原创 __VA_ARGS__使用

#include <stdio.h> #include <iostream> #define LOG_TYPE0(format, ...) do { \ printf(format, __VA_ARGS__); \ } while (0) \ #define LOG_TYPE1(format, args......

2019-09-17 13:39:50 1516

原创 随机获取元素的hash map

#include <time.h> #include <iostream> #include <vector> #include <unordered_map> #include <random> std::default_random_engine G_SEED(time(NULL)); class RandomHashSet {...

2019-09-16 16:32:26 545

原创 函数包装器

#include <iostream> template <class Function, typename...Args> inline auto FunctionWrapper(Function &&fun, Args &&...args) -> decltype(fun(std::forward<Args>(args...

2019-09-09 13:38:06 127

原创 google benchmark

#include <iostream> #include <string.h> #include <string> #include <benchmark/benchmark.h> std::string mystr; void init_mystr() { mystr = "hello world."; } void test0() { ...

2019-09-07 10:20:16 259

多边形游戏

//多边形游戏:n个顶点,n条边的多边形,每一个顶点有一个整数值,每一条边上有*或+,代表乘法和加法 //从中任意删除一条边,用相邻的顶点和关联的边上的运算符进行运算,运算结果产生新的顶点 //用新的顶点取代原来的两个顶点和他们关联的边,这样依次做下去,最后只剩一个顶点,求出最大的顶点值

2012-01-22

字符串匹配程序

#include<iostream>#include<vector>#include<string> #include<sstream>using namespace std;

2012-01-21

计算机集群

distributed processing system, which consists of a collection of interconnected stand-alone computers working together as a single, integrated computing resource

2012-01-19

大规模并行处理机系统 MPP

In a massively parallel processing system, current levels of technology allow for

2012-01-18

对称多处理机

单一物理地址空间(single physical Address Space) 高速缓存一致性(Cache coherence) 低通信延迟(low Latency)Only an OS copy

2012-01-18

Interconnection Network

the n! Connection patterns of its n inputs and n outputs.For example Clos network.In contrast ,blocking network, for example Omega,multistage cube

2012-01-18

Communication in Multiprocessor Systems

在扩展的多处理机、多计算机机群或分布式系统中,各个组成模块都可以系统总线、I/O总线、交叉开关或多级开关互连之。

2012-01-18

高级计算机测试

A PLA has a set of inputs and corresponding input complements (which can be implemented with a set of inverters), and two stages of logic

2012-01-18

高级体系结构课程纲要

A PLA has a set of inputs and corresponding input mplements (which can be implemented with a set of inverters), and two stages of logic

2012-01-18

高级计算机体系结构

单片集成大量三极管,功能增强加工线条精细,三极管尺寸小,门延减小,频率提高集成度提高,功耗增加,温度升高引脚受空间限制线条电阻可能超过门延

2012-01-18

线性表的分析

线性表示一个有序的链表,集合里的元素是谓语有序的口岸

2011-12-19

CBR推理技术模型

AI资料介绍,一些详细的c++编码,和人工智能前沿的技术和方法论

2011-11-23

人工智能课件

人工智能方法与系统,涉及c++编程,还有一些人工智能前沿的问题。

2011-11-23

计算机技术人工智能1

人工智能第一课,的题目是什么呢,这样吧人工智能方法林离的

2011-10-30

空空如也

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

TA关注的人

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