
c/c++
小草设计
程序员
展开
-
c++三目运算符的嵌套使用
c++中的三目运算符 "?:" 在多数教材上都说是右结合性,但本人感觉在实际使用中,三目运算符的右结合性与其他运算符的右结合性不尽相同.例如:a++?b++?c++:d++:e++按照右结合性,应该理解为a++?(b++?c++:d++):e++这样按照优先级,应当先计算括号内的,然后再进行括号外的运算.而实际上,还是先进行括号外的运算,然后根据条件是否成立,选择相应的语句原创 2013-06-01 16:01:11 · 5936 阅读 · 1 评论 -
fatal error RC1004: unexpected end of file found
After you modified your resource's header file, like resource.h, you may got this error: "fatal error RC1004: unexpected end of file found".That's a bug of the resource compiler.The soluti原创 2013-07-22 12:19:29 · 1648 阅读 · 0 评论 -
Advance 3D Game Programming With DirectX 10.0练习源代码
1 helloWorld原创 2014-02-20 15:56:25 · 1051 阅读 · 0 评论