码迷,mamicode.com
首页 >  
搜索关键字:point    ( 7079个结果
【足迹C++primer】41、文本查询程序
/** * 功能:使用标准库:文本查询程序 * 时间:2014年7月10日09:10:15 * 作者:cutter_point */ #include #include #include #include #include #include #include #include using namespace std; using line_no=vector::size_type; /**...
分类:编程语言   时间:2014-07-11 00:16:17    阅读次数:305
Effective C++ Item 28 避免返回对象内部数据的引用或指针
经验:避免返回handles(包括 references、指针、迭代器)指向对象内部。遵守这个条款可增加封装性, 帮助 const 成员函数的行为像个 const,并将发生“虚吊号码牌”(dangling handles)的可能性降至最低。 示例: class Point{ public: Point(int x, int y); //... void setX(int newVal); void setY(int newVal); //... }; struct RectData{ Point...
分类:编程语言   时间:2014-07-10 22:56:05    阅读次数:230
Codeforces 32E Hide-and-Seek 求2点关于镜面反射 计算几何
题目链接:点击打开链接 需要注意的是镜子在与2个人共线时是不作为障碍物,但其他情况与墙一致 #include #include #include #include #include using namespace std; #define point Point const double eps = 1e-8; const double PI = acos(-1.0); double ABS(...
分类:其他好文   时间:2014-07-10 21:32:50    阅读次数:254
TYVJ计算几何
今天讲了计算几何,发几道水水的tyvj上的题解...计算几何好难啊!@Mrs.General....怎么办....这几道题都是在省选之前做的,所以前面的Point运算啊,dcmp啊,什么什么的,基本上没用,每次都把上次的main()函数删了接着继续写....原谅我曾经丑出翔的代码...虽然现在也很丑...
分类:其他好文   时间:2014-07-10 17:08:02    阅读次数:141
绑定元素属性改变不通知界面
情景假设:绑定的是一个Point,当Point的X或者Y属性发生改变时,绑定的点也随界面改变此时界面不会发生改变原因:当X或者Y属性发生改变时并没有触发Point的Set方法 1 2 3 4 5 6...
分类:其他好文   时间:2014-07-09 20:16:49    阅读次数:173
【足迹C++primer】39、动态内存与智能指针(3)
动态内存与智能指针(3) /** * 功能:动态内存与智能指针 * 时间:2014年7月8日15:33:58 * 作者:cutter_point */ #include #include #include #include using namespace std; /** 智能指针和异常 */ void f() { shared_ptr sp(new int(42)); ...
分类:编程语言   时间:2014-07-09 09:08:04    阅读次数:161
c++中的静态成员变量
C++ 类中的静态变量 静态数据成员: 下面看一个例子: #include class Point { public: void output() { } static void init() {   } }; void main( void ) { Point pt; pt.init(); pt.output(); } 这样编译是不会有任何错...
分类:编程语言   时间:2014-07-08 21:11:37    阅读次数:179
HDOJ1084 What Is Your Grade?
What Is Your Grade? Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 8302    Accepted Submission(s): 2547 Problem Description “Point...
分类:其他好文   时间:2014-07-08 18:48:30    阅读次数:171
【Unity 3D】学习笔记三十二:游戏元素——游戏光源
游戏光源 在3D游戏中,光源是一个非常具有特色的游戏组件。用来提升游戏画面质感的。如果没有加入光源,游戏场景可能就会显得很昏暗。在unity中提供了三种不同的光源类型:点光源,聚光灯,平行光。 点光源 顾名思义,点光源是从一个点向周围散发出光的光源,就像电灯一样。创建点光源在hierarchy视图中点击create——point light: 创建完以后...
分类:其他好文   时间:2014-07-08 16:29:44    阅读次数:221
LeetCode——Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fin...
分类:其他好文   时间:2014-07-08 14:21:56    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!