大家其实知道可以用异或来实现交换学过C的人看如上的程序一看以为肯定交换了但是注意C对表达式的计算顺序和Java是不同的java是从左往右的所以不对简单修改就可以了:交换连个数的方法一、使用中间量(这个就不多说了)二、使用异或(如上)三、使用加减法这个不需要解释吧
分类:
编程语言 时间:
2014-05-07 15:26:28
阅读次数:
385
CitrixSynergy今天正式开幕。虽然经历了一天的洗礼,身体有些疲惫,但是还是抑制不住自己的兴奋,想要早点分享这次大会给我们带来的惊喜。和往届一样,这次又是一个人山人海的大会,组委会介绍说有超过5,000人到会,我可没办法数清楚,不过八点钟就赶到会场时发现已经早餐没地..
分类:
其他好文 时间:
2014-05-07 15:21:11
阅读次数:
483
http://blog.csdn.net/liuliming3000/article/details/18093851从C到C++
string类2 string类的构造函数3 string类的字符操作4 string的特性描述5 string类的输入输出操作6 string的赋值7
string的...
分类:
编程语言 时间:
2014-05-08 19:38:31
阅读次数:
376
http://bbs.csdn.net/topics/390334265
分类:
其他好文 时间:
2014-05-08 19:39:03
阅读次数:
240
Java代码
struts2中的日期期输入显示问题 struts2中的默认的日期输出并不符合我们的中文日常习惯.以下是我知道的在struts2中进行日期格式化输出的几种方式.
1.利用进行格式化.如: 就是将属性birthday按yyyy-MM-dd的格式进行输出. 2.利用进行格式化....
分类:
其他好文 时间:
2014-05-08 19:37:08
阅读次数:
353
排序后贪心或根据第二关键字找最长下降子序列#pragma comment(linker,
"/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#include#i...
分类:
其他好文 时间:
2014-05-08 19:36:06
阅读次数:
267
课程网站:http://www.ee.columbia.edu/~stanchen/fall09/e6870/slide
下载地址:http://www.ee.columbia.edu/~stanchen/fall09/e6870/slides/推荐读物:www.cs.bham.ac.uk/~pxc...
分类:
其他好文 时间:
2014-05-08 19:36:41
阅读次数:
325
Oracle中有sequence的功能,SQL
Server类似的功能使用Identity列实现,但是有很大的局限性。在2012中,微软终于增加了sequence 对象,功能和性能都有了很大的提高。sql
server 2012 序列配置属性1. 查询序列的下一个值select next value...
分类:
数据库 时间:
2014-05-08 19:35:44
阅读次数:
446
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ ///
/// 复选框操作类 ...
分类:
其他好文 时间:
2014-05-07 20:22:28
阅读次数:
345
说的有点乱,先看个图把其实这个constrant的目的就是控制两个方形的控件上方和下方的空白大小。对于每一个方块来说,他们上方和下方的空白是相同的。这种“居中”的设计到处可见。一个控件想实现这种居中和简单,只需要建立一个参考的view,比如这里的h1或h2,再调整好参考view的高度,最后设置控件和...
分类:
移动开发 时间:
2014-05-08 19:34:53
阅读次数:
486
App_Code.SendMessHelper.SendMessage();这样写会报非静态的字段,方法或属性要求对象引用类里面的方法有兩种表現:一种是直接可以來用的,还有一种是必须实例化以后才能使用的。前者要求在方法生明的時候必須加上static关键字(是不是想起Main方法了???),因爲這個方...
分类:
其他好文 时间:
2014-05-08 19:35:18
阅读次数:
280
#pragma comment(linker,
"/STACK:1024000000,1024000000")#include#include#include#include#include#include#include#include#include#include#include#includ...
分类:
移动开发 时间:
2014-05-08 19:33:18
阅读次数:
493
综合类微软企业库微软官方出品,是为了协助开发商解决企业级应用开发过程中所面临的一系列共性的问题,
如安全(Security)、日志(Logging)、数据访问(Data Access)、配置管理(Configuration
Manage)等,并将这些广泛使用的应用程序块集成封装至一个叫企业库的程序包...
分类:
Web程序 时间:
2014-05-08 19:33:52
阅读次数:
521
在web.xml前添加的和 struts2
org.apache.struts2.dispatcher.FilterDispatcher struts2 /*
分类:
Web程序 时间:
2014-05-08 19:34:20
阅读次数:
289
创建采购组织 路径:SPRO – IMG – 企业结构 – 定义 – 物料管理 –
维护采购组织 操作: Step 1、点击“新条目”。 Step 2、维护“采购组织”、“采购组织描述”。 Step 3、点击保存按钮或者Ctrl + S,即可。
...
分类:
其他好文 时间:
2014-05-08 19:32:53
阅读次数:
1234
TheBig Data Zoneis presented bySplunk, the maker of
data analysis solutions such asHunk, an analytics tool for Hadoop, and theSplunk
Web Framework.Liv...
分类:
其他好文 时间:
2014-05-08 19:31:55
阅读次数:
596
环境准备:eclipse(Helios)3.6maven3.0.4maven3 安装:安装
Maven 之前要求先确定你的 JDK 已经安装配置完成。Maven是 Apache 下的一个项目,目前最新版本是 3.0.4,我用的也是这个。首先去官网下载
Maven:http://www.apache....
分类:
系统相关 时间:
2014-05-08 19:29:58
阅读次数:
486
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ ///
/// 列表视图操作类 ...
分类:
其他好文 时间:
2014-05-08 19:30:25
阅读次数:
337
一、拿代码repo init -u url初始化版本库,在当前目录建立一个".repo",
-u 参数指定一个URL, 从这个URL 中取得repository 的 manifest 文件.1.拿Android主线上所有的sourcecode:
repoinit-ugit://android.gi....
分类:
其他好文 时间:
2014-05-08 19:30:59
阅读次数:
329
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Windows.Forms;namespace Common{ ///
/// DataGrid...