#include int check_power(unsigned int n){
/**************************************** * 如果n是2的幂,那么(n-1)也就是其二进制全为1的数
********************************...
分类:
其他好文 时间:
2014-06-11 12:45:21
阅读次数:
231
这篇文章来自iOS Tutorial Team 成员Marcelo Fabri,
他是Movile的一个iOS开发者. Check out hispersonal websiteorfollow him on Twitter.原文地址
当我们开发iOS应用时,好的性能对我们的App来说是很重要的。你...
分类:
移动开发 时间:
2014-06-08 01:28:27
阅读次数:
507
最近项目需要用到上传下载,以前学jsp的时候直接用的是smartUpload,现在学的框架但是老师只是简单地教了框架的内容
对struts文件上传和下载没有涉及,没办法只能自己自学了!结果出现了上面的问题。
这个问题的根本原因网上都有说出来,但是没有给出的解决方案。原因是要返回的流为空,文件的路径有误导致文件的输入流为空!
所以最好在逻辑处理那块输出的你要下载文件的路径看是不是你要下载的路径...
分类:
编程语言 时间:
2014-06-07 13:15:51
阅读次数:
289
Stop命令使用该命令的程序位置INITIALIZATION, AT
SELECTION-SCREEN, START-OF-SELECTION和GET
事件中处理说明1、当在INITIALIZATION事件执行该命令,系统将直接触发应用服务器和客户端屏幕元素的发送;2、在其他事件中将直接触发END-...
分类:
其他好文 时间:
2014-06-06 22:53:58
阅读次数:
251
虽然很早以前就只有Eclipse和IDEA都支持远程调试功能的,但是基本没怎么使用过,今天因为紧急处理一个问题,而本地环境搭建起来比较麻烦,所以就使用了IDEA的远程调试功能。因此写一篇文章记录一下。步骤:1.
首先在IDEA中check出来你要调试的工程的代码,假设工程的名字为A。然后在IDEA....
分类:
其他好文 时间:
2014-06-06 07:30:46
阅读次数:
339
//判断是否是一个网址//邮箱检测——————————————————————————4function
check_idea15(s){var reEmail=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;var
b_email=reEmail.t...
分类:
Web程序 时间:
2014-06-03 14:51:44
阅读次数:
446
【题目】
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
【题意】
判断了两个二叉树是否相等
【思路】
递归...
分类:
其他好文 时间:
2014-06-02 11:03:03
阅读次数:
205
【题目】
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
But the following is not:
1
/ 2 2
\ 3 3
No...
分类:
其他好文 时间:
2014-06-02 10:56:14
阅读次数:
237
check_lock.sql脚本
列出对象锁(lock)信息及其被杀的会话(sid,serial#)信息
setlinesize132pagesize66
breakonKillonusernameonterminal
columnKillheading‘KillString‘formata13
columnresheading‘ResourceType‘format999
columnid1format9999990
columnid2format999999..
分类:
其他好文 时间:
2014-06-02 04:11:00
阅读次数:
248
Caused by: java.sql.SQLException: You have an error
in your SQL syntax; check the manual that corresponds to your MySQL server
version for the right s...
分类:
数据库 时间:
2014-06-01 11:31:29
阅读次数:
371