自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Cfont字体整理

BOOL CreateFont(//指定字体高度(逻辑单位)。有三种取值://>0,字体映射器将高度值转换为设备单位,并与可用字体的字符元高度进行匹配;//=0,字体映射器使用默认的高度值;//<0,字体映射器将高度值转换为设备单位,用其绝对值与可用字体的字符高度进行匹配。nHeight转换后的绝对值不应超过16384个设备单位。int nHeight,//指定字体中字符的平均宽度(逻

2016-01-26 10:35:38 2540

原创 “行参为引用”的思考

1.一个简单程序判断知否含有大写字母#include using std::cout; using std::cin; using std::endl;#include using std::string; #include #include using std::vector;#include using std::begin; using std::end;#in

2016-01-15 16:38:38 336

原创 32位电脑“内置类型"所占空间大小

#include using std::cout; using std::cin; using std::endl;#include using std::string; #include #include using std::vector;#include using std::begin; using std::end;#include using std::si

2016-01-13 16:26:19 583

原创 “寻找奇数”的思考

题:使用条件运算符从vector中寻找哪些元素的值是奇数,然后将这些奇数的值翻倍。#include using std::cout; using std::cin; using std::endl;#include using std::string; #include #include using std::vector;#include using std::begi

2016-01-13 15:40:38 385

原创 C++11:"auto"和"decltype"类型说明符的思考

//例1//编译器:gcc 4.8.1 系统:windows#include int main(){ int i = 1; auto a = i; decltype(i) d = 2; std::cout << "a: " << a << std::endl; std::cout << "d: " << d << std::endl; return 0; }输出

2016-01-07 09:52:18 487

原创 “顶层const”和“底层const”的思考

“顶层const"顾名思义就是对对象本身的一种限制,而使得对象本身为常量。例:const int a = 1; //对对象本身做了限制,变为常量,是“顶层const”同理,”底层const"通常与指针和引用等复合类型的基本类型有关,那是对指针、引用类型所牵连的对象的限制,那是对底层的限制。例:const int a = 1;const int *p = &a; //对存储的a

2016-01-06 21:39:36 395

原创 C++中while(std::cin >> value)的思考

例子:#include int main(){ int sum = 0, value = 0; while(std::cin >> value) { sum += value; } std::cout << "sum is " << sum << std::endl; return 0;}输入运算符( >> )

2016-01-06 06:35:49 3360

空空如也

空空如也

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

TA关注的人

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