码迷,mamicode.com
首页 >  
搜索关键字:convert standalone    ( 5511个结果
蛇形矩阵
#region 蛇形矩阵 static void SnakeMatrix() { // 我们把它看做是一个回矩阵 Console.WriteLine("请输入矩阵的行数"); int n = Convert...
分类:其他好文   时间:2015-03-02 06:05:21    阅读次数:273
zookeeper standalone模式安装
首先需要安装jdk,参考之前的文章:Ubuntu 13.10-14.10 安装Oralce JDK然后下载最新稳定版本到/opt目录/opt$ wget http://mirrors.cnnic.cn/apache/zookeeper/stable/zookeeper-3.4.6.tar.gz解压目录:tar zxvf zookeeper-3.4.6.tar.gz 解压后的目录结构为:/opt/z...
分类:其他好文   时间:2015-03-01 22:23:32    阅读次数:219
三个数比较大小
Console.WriteLine("请输入三个数"); int a, b, c,jg; a = Convert.ToInt32(Console.ReadLine()); b = Convert.ToInt32(Console.ReadLine()); c = Convert.ToInt32(Con...
分类:其他好文   时间:2015-03-01 22:16:16    阅读次数:152
计算闰年
Console.WriteLine("请输入一个年份"); int n; n = Convert.ToInt32(Console.ReadLine()); if (n % 400 == 0 || n % 4 == 0 && n % 100 != 0) { Console.WriteLine("是闰年...
分类:其他好文   时间:2015-03-01 22:16:09    阅读次数:136
[LeetCode]72.Edit Distance
题目Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have the following 3 operations permitted on a word:a)...
分类:其他好文   时间:2015-03-01 13:18:01    阅读次数:124
【转】C#中Convert和parse的区别
Convert.ToInt32()与int.Parse()的区别(1)这两个方法的最大不同是它们对null值的处理方法:Convert.ToInt32(null)会返回0而不会产生任何异常,但int.Parse(null)则会产生异常。没搞清楚Convert.ToInt32和int.Parse()的...
分类:Windows程序   时间:2015-03-01 11:54:23    阅读次数:152
convert NameValueCollection/Dictionary<string, object> to JSON string
var col=HttpContext.Current.Request.Form; Dictionary dict = new Dictionary(); foreach (var key in col.AllKeys) { ...
分类:Web程序   时间:2015-02-28 16:07:18    阅读次数:723
开启cowboy的第一个程序
开始: ???????? Erlang不仅是一门语言,而且是一个操作系统对于你的应用程序。Erlang developers 很少写standalone modules, 它写库或应用,然后把这些组织在一起叫做一个release。一个release包含Erl...
分类:其他好文   时间:2015-02-28 13:13:26    阅读次数:123
[LeetCode] Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.解法:自底向上 时间复杂度O(n), 空间复杂度O(logN) 1 clas...
分类:其他好文   时间:2015-02-26 19:58:04    阅读次数:166
根据当前时间查询上月26号的日期 本月月25号的日期
--根据当前时间查询上月26号的日期SELECT CONVERT(varchar(10), CONVERT(varchar(8),dateadd(month,-1,getdate()),120)+'26' , 120)--根据当前时间查询本月月25号的日期SELECT CONVERT(varch.....
分类:其他好文   时间:2015-02-26 16:37:06    阅读次数:140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!