码迷,mamicode.com
首页 >  
搜索关键字:roman to integer    ( 15811个结果
Reverse Integer
问题:翻转数字分析:注意初始化class Solution {public: int reverse(int x) { int y=0; while(x) { y=(y*10)+x%10; x/=10; ...
分类:其他好文   时间:2014-08-01 22:32:12    阅读次数:174
delphi 滚屏
滚屏 uses MSHTML;vara: IHTMLDocument2;x,y:Integer;beginy:=y+20;//加减进行上下滚动a :=WebBrowser1.Document as IHTMLDocument2;a.Get_ParentWindow.Scroll(x,y);end;来...
分类:其他好文   时间:2014-08-01 19:37:42    阅读次数:174
(四)、利用命令行参数输入一个整数,打印空心菱形
1 /*利用命令行参数输入一个整数,并判断该数字是否为奇数,如果是奇数,则用其作行数打印空心菱形 2 –PS:将字符串转换为数字的方法 3 ?int num=Integer.parseInt(String number);*/ 4 5 package com.gen; 6 public clas.....
分类:其他好文   时间:2014-08-01 19:22:22    阅读次数:293
(五)、利用命令行参数输入三个整数,并对三个数字进行降序排列
1 /*利用命令行参数输入三个整数,并对三个数字进行降序排列。 2 –PS:将字符串转换为数字的方法 3 ?int num=Integer.parseInt(String number);*/ 4 package com.gen; 5 6 public class ArgumentOrder {.....
分类:其他好文   时间:2014-08-01 19:21:22    阅读次数:232
收集的一些零散代码
格式化文本,动态添加空格functionformatStr(constsrcStr:string;Leng:integer):string; var i,iLen:integer; begin //先把原字符串赋值给返回字符串Result Result:=srcStr; //计算相差多少空格 iLen:=Leng-Length(srcStr); //在返回字符串后,补齐空格 fori:=1toiLendo begin ..
分类:其他好文   时间:2014-08-01 13:55:42    阅读次数:168
UVA 11991 Easy Problem from Rujia Liu?
Given an array, your task is to find the k-th occurrence (from left to right) of an integer v. To make the problem more difficult (and interesting!), you'll have to answer m such queries. Input Ther...
分类:其他好文   时间:2014-08-01 13:42:11    阅读次数:170
poj2352
StarsTime Limit: 1000 MS Memory Limit: 65536 KB64-bit integer IO format: %I64d , %I64u Java class name: MainDescriptionAstronomers often examine star ...
分类:其他好文   时间:2014-08-01 12:58:21    阅读次数:214
delphi 使用进度条查看浏览器状态
使用进度条查看浏览器状态 procedure TForm1.WebBrowser1ProgressChange(ASender: TObject; Progress,ProgressMax: Integer);beginProgressBar1.Max:=ProgressMax;if Progres...
分类:其他好文   时间:2014-08-01 12:57:31    阅读次数:168
delphi 数组类型
数组类型 数组类型定义了一组指定类型的元素序列,在方括号中填入下标值就可访问数组中的元素。定义数组时,方括号也用来指定可能的下标值。例如,下面的代码中定义了一个有 24 个整数的数组:typeDayTemperatures = array [1..24] of Integer;在数组定义时,你需要在...
分类:其他好文   时间:2014-08-01 12:49:51    阅读次数:188
Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他好文   时间:2014-08-01 12:49:41    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!