自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (11)
  • 收藏
  • 关注

原创 输出异常

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2016-08-11 11:03:56 270

转载 What's wrong with the string class defined by the draft standard?

Strings in SGI STLThis is an attempt to answer some of the questions related to the use of strings with SGI STL.What's wrong with the string class defined by the draft standard?There are several

2016-06-22 13:05:13 270

原创 多机数据处理实践

一、多机数据处理。有 10 台机器,每台机器上保存着 10 亿个 64-bit 整数(不一定刚好 10 亿个,可能有上下几千万的浮动),一共约 100 亿个整数(其实一共也就 80GB 数据,不算大,选这个量级是考虑了 VPS 虚拟机的容量,便于实验)。编程求出: 1. 这些数的平均数。 2. 这些数的中位数。 3. 出现次数最多的 100 万个数。 *4. (附加题)对这 100 亿个整数

2016-06-14 10:08:27 831

原创 指针计算

验证图片中的问题: 这里写图片描述 int *a=new int(10); int *b=new int(20); cout<<"a="<<hex<<a<<endl; cout<<"b="<<hex<<b<<endl; a=(int*)(b-a);

2016-06-13 16:53:46 248

原创 关于gcc中string的sizeof

class test_string { struct _Rep_base { int* _M_length; int* _M_capacity; int* _M_refcount; }; struct _Alloc_hider {

2016-06-13 13:35:46 290

原创 关于const

此定义的问题: 1、参数定义的两个const都是修饰的int,属于重复定义 2、一般内建类型不需要定义为引用 3、返回值为引用,注意定义的时候不要返回临时值 还要注意const一般不修饰&,引用默认为const,不需要显式修饰

2016-06-08 10:38:41 219

原创 关于operator new及placement new,和相关的delete重载

class Fruit { int no; double weight; char key; public: void print() { } virtual void process(){ } };// class Apple: public Fruit // { // int size; // char type; //

2016-06-03 09:57:19 344

原创 类大小总结

namespace test_class_size { class A { public: protected: private: }; class B{ public: protected: private: }; class C:public A,public B{ public: protected: private:

2016-05-31 14:13:29 219

转载 关于class 类大小的总结

namespace test_class_size    {    class A    {  public:  protected:  private:  };  class B{  public:  protected:  private:  };  class C:public A,public B{  public:  prote

2016-05-31 13:58:54 485

原创 成员函数16字节的使用

namespace pointer_to_member_func { struct A { void foo() const { std::cout << “A’s this:\t” << this << std::endl; } char

2016-05-31 13:19:54 315

原创 测试成员函数指针大小

namespace pointer_to_member_func    {    struct A     {   void foo() const {       std::cout    }   char pad0[32];}; struct B {   void bar() const {       std::cout    } 

2016-05-30 08:09:24 454

原创 函数对象为构造函数参数时

namespace non_virtual_interface2 {class base;int default_health_calc(const base& gc){}class base{public: typedef std::function health_calc_func; explicit base(health_calc_func hcf=defaul

2016-05-23 16:34:22 428

Boost ASIO C++ 网络编程

Boost ASIO C++ 网络编程

2016-03-17

设计模式设计模式

设计模式

2016-03-17

C++虚函数表解析

C++虚函数表解析

2014-03-21

c#串口操作c#串口操作c#串口操作

c#串口操作c#串口操作c#串口操作c#串口操作c#串口操作

2009-11-30

c#串口操作c#串口操作

c#串口操作c#串口操作c#串口操作c#串口操作c#串口操作c#串口操作c#串口操作

2009-11-30

vmlc#aspdotnet实现划线

vmlc#aspdotnet实现划线vmlc#aspdotnet实现划线vmlc#aspdotnet实现划线vmlc#aspdotnet实现划线vmlc#aspdotnet实现划线

2009-08-19

学校网站源代码学校网页模板正式版

学校网站源代码学校网页模板正式版学校网站源代码学校网页模板正式版

2009-08-16

c#的gridview应用

c#的gridview应用c#的gridview应用c#的gridview应用c#的gridview应用c#的gridview应用

2009-08-05

存储过程的c#实现代码

存储过程的c#实现代码存储过程的c#实现代码存储过程的c#实现代码存储过程的c#实现代码

2009-08-05

c#画图用代码一切方法

c#画图用的c#画图用代码一切方法c#画图用代码一切方法

2009-07-27

空空如也

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

TA关注的人

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