码迷,mamicode.com
首页 >  
搜索关键字:blue    ( 1833个结果
UVA253Cube painting骰子涂色
We have a machine for painting cubes. It is supplied with three different colors: blue, red and green. Each face of the cube gets one of these colors....
分类:其他好文   时间:2015-04-26 15:04:55    阅读次数:142
[LeetCode]Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers...
分类:其他好文   时间:2015-04-26 10:57:53    阅读次数:170
Graphics samples2
为图形填充渐变色:Graphics2D g2=(Graphics2D)g;GradientPaint gra=new GradientPaint(20, 20, Color.BLUE, 100,80,Color.cyan,true); g2.setPaint(gra); ...
分类:其他好文   时间:2015-04-26 10:50:36    阅读次数:124
avalon视频学习笔记(四)
二、显示隐藏处理 含义:效果类似于jquery的toggle,如果它后面跟着的表达式为真值时则显示它所在的元素,为假值时则隐藏。 avalon-visible 色块[red] 色块[green] 色块[blue] 来自为知笔记(Wiz)
分类:其他好文   时间:2015-04-25 13:31:24    阅读次数:111
UESTC_Little Deer and Blue Cat CDOJ 1025
哥德巴赫猜想,难
分类:其他好文   时间:2015-04-25 01:36:05    阅读次数:141
绝不重新定义继承而来的缺省参数值
考虑如下的代码:class Shape{public: enum ShapeColor{Red, Green, Blue}; virtual void draw(ShapeColor color = Red) const = 0; ...};class Rectangle: pub...
分类:其他好文   时间:2015-04-24 16:16:13    阅读次数:117
面向对象(成员变量和局部变量)
/* 成员变量和局部变量。 作用范围。 成员变量作用于整个类中。 局部变量变量作用于函数中,或者语句中。//例如在for循环中 在内存中的位置: 成员变量:在堆内存中,因为对象的存在,才在内存中存在。 局部变量:存在栈内存中。 */ //c.color = "blue";改变的不是类中的值,而是改变的对象中的值。就相当于给一个车图上颜色,而不是改变图纸的颜色值。...
分类:其他好文   时间:2015-04-24 09:12:58    阅读次数:97
面向对象(匿名对象的使用)
讲个小知识点,匿名对象,匿名就是没有名字,不起名字是对象的简写格式,有自己的应用场景,也有自己的弊端。 new Car().num = 5;一执行完就垃圾了 new Car().color = "blue";一执行完就垃圾了 new Car().run();//匿名对象调用方法有意义,里面有内容,而调用属性       Car c = new Car(); c.run()...
分类:其他好文   时间:2015-04-24 09:11:05    阅读次数:125
JQuery选择器转义说明
JQuery选择器JQuery选择器规则, 借用了css1-3的规则(css选择器规则), 因为css本身也需要一套规则来索引DOM元素, 进而进行样式渲染,例如div.blue 表示目标DOM为 class属性值为blue的div元素。同时JQuery添加了一些自己的规则, 例如按照查询连接元素 ...
分类:Web程序   时间:2015-04-24 00:52:26    阅读次数:326
leetcode Sort Colors
leetcode Sort Colorsleetcode Sort Colors计数排序注: 题目的要求是将 A 数组重新排列成有序, 而不是将排序的序列输出Sort ColorsGiven an array with n objects colored red, white or blue, so...
分类:其他好文   时间:2015-04-22 23:53:37    阅读次数:121
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!