码迷,mamicode.com
首页 >  
搜索关键字:red    ( 13693个结果
C# 6.0 (C# vNext) 新功能之:Expression Bodied Functions and Properties
Expression Bodied Function 可以用在: methodsuser-defined operatorstype conversionsread-only properties indexers 看以下的例子: public class RgbColor(int r, int g, int b) { public int Red { get; } = r; p...
分类:Windows程序   时间:2014-10-14 14:54:38    阅读次数:303
【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 int...
分类:其他好文   时间:2014-10-13 22:00:39    阅读次数:179
JavaScript高级程序设计(第三版)第五章 引用类型
5.2 Array类型1 var colors = new Array(3); //创建一个包含3项的数组2 var names = new Array("Greg"); //创建一个包含1项,即字符串“Greg”的数组5.2.2 转换方法1 var colors = ["red", "...
分类:编程语言   时间:2014-10-13 14:21:29    阅读次数:382
POJ 1979 Red and Black(DFS 连通块中元素数量)
题意  求矩阵中包含‘@’的'.'连通块中元素数量  '@'也看做'.'  最基础的dfs了 #include #include using namespace std; const int N = 30; char mat[N][N]; int dx[4] = {0, 0, -1, 1}, dy[4] = { -1, 1, 0, 0}; int ans; void dfs(int r, i...
分类:其他好文   时间:2014-10-13 13:40:09    阅读次数:271
Python - list
在Python中使用list 来序列元素例:l = [] #一个空的listl2 = [1,2,3] # 一个数字列表l3 = ['a', 'b', 'c'] # 一个字符串列表l4 = [[3,4],['black', 'red', 'yellow'], []] # 一个长度为3的 列表list ...
分类:编程语言   时间:2014-10-12 21:54:38    阅读次数:213
poj 1979 Red and Black
题目链接:http://poj.org/problem?id=1979思路:DFS搜索法解决,与迷宫问题相似;迷宫由于搜索方向只往左或右一个方向,往上或下一个方向,不会出现重复搜索;在该问题中往四个方向搜索,会重复搜索;所以使用vis表来标记访问过的点,避免重复搜索。代码:#include usin...
分类:其他好文   时间:2014-10-12 20:36:08    阅读次数:201
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 ...
分类:其他好文   时间:2014-10-12 20:20:18    阅读次数:159
Ubuntu下deb包的安装方法
deb是debian linus的安装格式,跟red hat的rpm很类似,最主要的安装命令是:dpkg -i file.deb dpkg 是Debian Package的简写,是为Debian 专门开发的套件管理系统,方便软件的安装、更新及移除。全部源自Debian的Linux发行版都使用dpkg...
分类:系统相关   时间:2014-10-12 18:29:48    阅读次数:232
Geneve: Generic Network Virtualization Encapsulation
Earlier this year, VMware, Microsoft, Red Hat and Intel published an IETF draft on Generic Network Virtualization Encapsulation (Geneve). Thisdraft(fi...
分类:Web程序   时间:2014-10-11 12:54:55    阅读次数:224
java 枚举类型分析
最近做android开发,需要用到枚举值,这样可以连续赋值,我按之前c++那样书写,如下所示:public enum ColorSelect { RED_BAGE = 0, GREEN_BAGE, BLUE_BAGE; }编译不过。我...
分类:编程语言   时间:2014-10-11 12:20:05    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!