这道题我是按定义来做的Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 1 package com.gx...
分类:
其他好文 时间:
2014-11-10 19:34:27
阅读次数:
211
关键字typedeftypedef 操作符可以看做是普通变量和类型之间的转换开关!!例如typedef int Integer;//定义了一种类型int Integer;//定义了一个变量就是类型和变量的区别A. 对数据类型定义“别名"intmain(intargc,constchar* argv[...
分类:
其他好文 时间:
2014-11-10 15:29:14
阅读次数:
160
/**************************************************************
1005. Spell It Right (20)
时间限制
400 ms
内存限制
32000 kB
代码长度限制
16000 B
判题程序
Standard
作者
CHEN, Yue
Given a non-negative integer N, your task...
分类:
其他好文 时间:
2014-11-10 13:49:48
阅读次数:
138
//%f表示以十进制格式化输出浮点数
String s1 ="评分: %.1f";
String s2 = String.format(s1, 8.0);
System.out.println(s2);
System.out.printf("%s%n", new Integer(1212));
// %n表示换行
System.out.printf("%s%n", "end line"...
分类:
其他好文 时间:
2014-11-10 12:12:54
阅读次数:
148
一函数原型及参数 function MessageBox(hWnd: HWND; Text, Caption: PChar; Type: Word): Integer; hWnd:对话框父窗口句柄,对话框显示在Delphi窗体内,可使用窗体的Handle属性,否则可用0,使其直接作为桌面窗口的子窗口...
分类:
编程语言 时间:
2014-11-10 09:45:35
阅读次数:
192
1.数据库——创建数据表1 create table clob_test2 (3 id integer not null auto_increment primary key,4 big_text text not null5 );2.用JDBC处理大段文本数据(1)将文本数据写入数据库 1 ...
分类:
数据库 时间:
2014-11-09 23:40:00
阅读次数:
305
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space. 1 public class Solution { 2 public boolean isPalindrom...
分类:
其他好文 时间:
2014-11-09 23:37:34
阅读次数:
209
Given a binary tree, a target node in the binary tree, and an integer value k, print all the nodes that are at distance k from the given target node. ...
分类:
其他好文 时间:
2014-11-09 23:30:26
阅读次数:
235
String to Integer (atoi)Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, plea...
分类:
其他好文 时间:
2014-11-09 23:27:39
阅读次数:
289
1 在服务器端使用sqllite编写数据库
常见命令是:sqlite3 tank.db
进入之后创建表:
create table tscore (
id integer primary key autoincrement,
username varchar(32) unique not null,
totalscore integer not null, ...
分类:
Web程序 时间:
2014-11-09 22:16:40
阅读次数:
388