自定义博客皮肤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)
  • 收藏
  • 关注

转载 裘宗燕:C/C++ 语言中的表达式求值(转自CSDN论坛,C++语言分论坛)

经常可以在一些讨论组里看到下面的提问:“谁知道下面C语句给n赋什么值?”m = 1; n = m+++m++;最近有位不相识的朋友发email给我,问为什么在某个C++系统里,下面表达式打印出两个4,而不是4和5:a = 4; cout C++ 不是规定 要弄清这些,需要理解的一个问题是:如果程序里某处修改了一个变量(通过赋值、增量/减量操作等),什么时候从该变量能够取到新值?

2012-10-16 09:02:49 876

原创 (后悔木有好好学数据结构和算法)之排序算法一

快速排序:void Qsort( int Array[], int begin, int end ){ int compare = Array[begin]; int left = begin; int right = end; if ( left >= right ) return ; while ( left < right ) { while ( ( l

2012-09-27 20:57:54 518

转载 预编译头

许多初学 VC 的朋友也许都为那么一个问题困扰过:    为什么所有的 cpp 都必须 #include "stdafx.h"    也许请教了别的高手之后,他们会告诉你,这是预编译头,必须包含。可是,这到底是为什么呢?预编译头有什么用呢?    这得从头文件的编译原理讲起。其实头文件并不神秘,它的全部作用,就是把自己的所有内容直接“粘贴”到相应的 #include

2012-09-12 11:14:42 838

原创 HGE tutorial 04 学习笔记及摘录

Tutorial 04 - Rendering to textureIn this tutorial we will learn how to use render targets. First, we declare the variables to handle the render target and the sprite that we will associat

2012-04-21 20:06:51 818

原创 HGE tutorial 03 学习笔记及摘录

Tutorial 03 - Using helper classesIn this tutorial we will learn how to use some of HGE helper classes. First, we include all the needed headers and declare the global pointer to the HGEinterface

2012-04-17 20:49:38 809

原创 HGE tutorial 02 学习笔记及摘录

Tutorial 02 - Using input, sound and renderingTo render something we will need a hgeQuad structure. Quad is the basic primitive in HGE used for rendering graphics. Quad contains 4 vertices, nu

2012-04-16 23:15:18 717

原创 孙鑫VC++视频学习笔记(第六课 菜单的工作原理及编写控件)

消息分类1.标准消息:除WM_COMMAND之外,所有以 WM_ 开头的消息。从CWnd派生的类,都可以接收到这类消息2.命令消息来自菜单、加速键或工具栏按钮的消息。这类消息都以WM_COMMAND呈现。在MFC中,通过菜单项的标识(ID)来区分不同的命令消息;在SDK中通过消息的wParam参数识别从CCmdTarget派生的类,都可以接收到这类消息。3通告消息由

2011-12-09 16:01:11 1476

空空如也

空空如也

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

TA关注的人

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