namespace 输入一个年份是否为闰年{ class Program { static void Main(string[] args) { while (true) { Console.WriteLine("请输入年份:"); int a = Convert.ToInt32(Console.R...
分类:
其他好文 时间:
2015-04-19 21:06:07
阅读次数:
128
1、CAST()CAST ( AS [ length ])2、CONVERT()CONVERT ([ length ], [,style])1)data_type为SQLServer系统定义的数据类型,用户自定义的数据类型不能在此使用。2)length用于指定数据的长度,缺省值为30。3)把CHA....
分类:
数据库 时间:
2015-04-19 19:11:45
阅读次数:
150
Roman to Integer
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
解题思路:
罗马数字转化成数字。一种方法是映射法,每一位(阿拉伯数字)的字符到阿拉伯数字的映射。如下所示:
class Solu...
分类:
其他好文 时间:
2015-04-18 20:40:01
阅读次数:
167
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Analyse: Be cautious abou the expression of ...
分类:
其他好文 时间:
2015-04-18 20:25:54
阅读次数:
116
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.首先,学习一下罗马数字,参考罗马数字罗马数字是最古老的数字表示方式,比阿拉伯数组早200...
分类:
其他好文 时间:
2015-04-18 20:21:32
阅读次数:
116
Integer to Roman
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
解题思路:
数字转罗马字符。并不是非常复杂,罗马字符的表示如维基百科所述http://zh.wikipedia.org/wiki/...
分类:
其他好文 时间:
2015-04-18 19:15:08
阅读次数:
135
---DECLARE @myid uniqueidentifierSET @myid = NEWID()SELECT CONVERT(char(255), @myid) AS 'char';GO--declare @allstring char(255),@AreaUid Uniqueidentif...
分类:
数据库 时间:
2015-04-18 19:04:27
阅读次数:
162
while (true) { Console.Write("请输入你的楼梯数:"); int n = Convert.ToInt32(Console.ReadLine()); int fenshu = 0; if (n > 100) { Console.WriteLine("您输入的楼梯数有误!")...
分类:
其他好文 时间:
2015-04-18 12:58:19
阅读次数:
124
1、错误描述
org.hibernate.exception.SQLGrammarException: error executing work
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:80)
at org.hibernate.exce...
分类:
数据库 时间:
2015-04-17 23:53:57
阅读次数:
550
1、错误描述
org.hibernate.exception.GenericJDBCException: error executing work
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54)
at org.hib...
分类:
数据库 时间:
2015-04-17 23:50:18
阅读次数:
309