自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 C++中类型转化纵横向比较

    在C++中有static_cast,dynamic_cast,reinterpret_cast,const_cast四种强制类型转化符,而对于这四种强制类型转化符很多程序员都不能正确的区分它们的用处。而我这篇文章或许为那部分人解惑。一: static_cast的使用     static_cast ( expression )  该运算符把expression转换为type-id

2009-07-23 19:22:00 382

原创 Textbox值校验控件编写

最近做了一个钢铁行业热轧的项目,虽然目前项目已经完工,但总是感觉自己在项目中写的代码量过多了点。其中尤为突出的就是大量Textbox的值的范围校验工作,让我写出了大量重复的代码。考虑到C#中Textbox没有值的范围校验的属性,十分恼火。于是自己动手添加了下,拿出和大家分享下。希望给出点意见!一.创建一个用户自定义控件的项目这个我就不多说了。二.将textbox和lable分别拖到控件的设计画面,

2008-10-20 20:31:00 652

google开源C++项目

这是Google的开源项目, 部分代码做证明 #ifndef GOOGLE_PROTOBUF_SERVICE_H__ #define GOOGLE_PROTOBUF_SERVICE_H__ #include #include namespace google { namespace protobuf { // Defined in this file. class Service; class RpcController; class RpcChannel; // Defined in other files. class Descriptor; // descriptor.h class ServiceDescriptor; // descriptor.h class MethodDescriptor; // descriptor.h class Message; // message.h // Abstract base interface for protocol-buffer-based RPC services. Services // themselves are abstract interfaces (implemented either by servers or as // stubs), but they subclass this base interface. The methods of this // interface can be used to call the methods of the Service without knowing // its exact type at compile time (analogous to Message::Reflection). class LIBPROTOBUF_EXPORT Service { public: inline Service() {} virtual ~Service(); // When constructing a stub, you may pass STUB_OWNS_CHANNEL as the second // parameter to the constructor to tell it to delete its RpcChannel when // destroyed. enum ChannelOwnership { STUB_OWNS_CHANNEL, STUB_DOESNT_OWN_CHANNEL };

2008-09-11

STL轻松入门

真正的好教材,我强烈的推荐

2008-04-26

空空如也

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

TA关注的人

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