自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

翻译 -->操作符

stackoverflow上的一道题,聪明的你知道-->是什么运算符吗?提问的人说他看了"Hidden Features and Dark Corners of C++/STL" on comp.lang.c++.moderated,居然发现了这个运算符,结果在Visual Studio 2008 and G++ 4.4.还都编过了。。#include int main(){

2012-01-05 13:15:30 275 1

原创 ()操作符的使用

本文参考MSDN,介绍()操作符函数调用class MultValue{ int mnFactor; public: MultValue(int lsh) :mnFactor(lsh) { } void operator ( ) ( int& elem ) const { elem *= mnFactor; }};int main (){ int elems

2011-12-27 14:18:53 325

原创 查看验证float存储格式

float型,和double型的存储格式,如图验证计算:float fnum = 1.123456;int f2n = *(int*)&fnum;cout << fnum << endl;cout << hex << f2n << endl;cout << dec;int strnum[32];int i;for ( i=0; i<32; i++ ){ str

2011-12-26 16:35:58 548 1

原创 用类静态函数指针实现的RTTI

oo中的优质代码,单例模式、类的静态函数指针实现RTTI本人对其进行裁剪,简单直接代码展现,把5个函数用宏的形式封装,便于插进代码中使用typedef void* (*TypeId)();#define TYPEINFO() \ static void* CreateType() { return 0; } \ static TypeId StaticType()

2011-12-24 00:32:51 402

STL源码剖析(侯捷)

STL源码剖析(侯捷) 简体中文 pdf

2012-01-07

ISO IEC 14882 1998 C++

ISO IEC 14882 1998 C++

2012-01-07

空空如也

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

TA关注的人

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