问题:翻转数字分析:注意初始化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
滚屏 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
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
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
使用进度条查看浏览器状态 procedure TForm1.WebBrowser1ProgressChange(ASender: TObject; Progress,ProgressMax: Integer);beginProgressBar1.Max:=ProgressMax;if Progres...
分类:
其他好文 时间:
2014-08-01 12:57:31
阅读次数:
168
数组类型
数组类型定义了一组指定类型的元素序列,在方括号中填入下标值就可访问数组中的元素。定义数组时,方括号也用来指定可能的下标值。例如,下面的代码中定义了一个有 24 个整数的数组:typeDayTemperatures = array [1..24] of Integer;在数组定义时,你需要在...
分类:
其他好文 时间:
2014-08-01 12:49:51
阅读次数:
188
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