循环结构 : while循环 do...while循环(几乎不用)
for循环(使用最多)特点:在给定的条件成立时,反复执行某程序段,直到条件不成立为止。给定的条件为循环条件,反复执行的程序段位循环体。一、while循环while(条件表达式){
循环语句;}#import int mai...
分类:
移动开发 时间:
2014-06-10 21:36:59
阅读次数:
346
原题地址:https://oj.leetcode.com/problems/palindrome-number/题意:Determine
whether an integer is a palindrome. Do this without extra space.click to show
spo...
分类:
编程语言 时间:
2014-06-10 16:06:52
阅读次数:
286
在安装VMware并启动新建的虚拟系统时,会出现错误could not open /dev/vmmon。
一般情况下,这是由于ubuntu系统gcc版本的问题。我机器上是gcc-4.5,于是我将其修改为gcc-4.6,方法如下...
分类:
其他好文 时间:
2014-06-10 14:45:41
阅读次数:
238
好多事.....特别是心事....总是爱追忆自己亲手丢掉的东西.....-------------------华丽丽的分界线---------------------好
现在来看这个题目吧: touch me当时 题目是读懂了 就是纠结在 字符串的存储与读取上 然后就这样被卡主了...后来 参...
分类:
其他好文 时间:
2014-06-10 12:28:24
阅读次数:
164
Given a linked list and a valuex, partition it
such that all nodes less thanxcome before nodes greater than or equal tox.You
should preserve the origi...
分类:
其他好文 时间:
2014-06-10 12:06:09
阅读次数:
205
There are three DMVs you can use to track
tempdb
usage:sys.dm_db_task_space_usagesys.dm_db_session_space_usagesys.dm_db_file_space_usageThe
first two ...
分类:
数据库 时间:
2014-06-10 11:27:07
阅读次数:
307
在面向对象编写js脚本时,定义实例方法主要有两种
如下:
function ListCommon2(afirst)
{
var first=afirst;
this.do1=function ()
{
alert("first do"+first);
}
}
ListCommon2.prototy...
分类:
Web程序 时间:
2014-06-10 11:11:26
阅读次数:
242
问题:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
分析:
该问题是符合斐波那契数列的,具体...
分类:
其他好文 时间:
2014-06-10 08:19:31
阅读次数:
194
Could not write metadata for '/test'.
这是由于删除一个项目时,没有同时在硬盘上删除该项目,而后又到硬盘文件系统中删除了该项目,才出现这问题的。
到eclipse工作空间workspace中找到\.metadata\.plugins\org.eclipse.core.resources\.projects
在其下面新建一个test再打开eclipse,在项...
分类:
系统相关 时间:
2014-06-10 07:47:39
阅读次数:
329
题目
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
方法
从后往前求解...
分类:
其他好文 时间:
2014-06-10 07:38:21
阅读次数:
171