本次内容:java常用类1、包装类 1 package array; 2 3 public class
wrapperclass { 4 public static void main(String[] args) 5 { 6 Integer i=new
Inte...
分类:
编程语言 时间:
2014-05-01 09:16:28
阅读次数:
384
之前一直想写个魔方计算器来着,以为一直用的都是魔方小站上的那个,虽然经典,但是太不美观了,而且我是个前端,那页面,那代码,简直不忍直视,所以想自己写一个。可是各种原因一直没机会写完,只写了核心打乱部分。但是由于我魔方水平有限,所以这个算法还是参考至魔方小站,只是重新写了下代码:(function()...
分类:
其他好文 时间:
2014-05-01 09:15:04
阅读次数:
383
Problem XHuge ModInput:standard
inputOutput:standard outputTime Limit:1 secondThe operator for exponentiation is
different from the addition, subtract...
分类:
其他好文 时间:
2014-05-01 09:03:35
阅读次数:
540
runtime
bundle/vim-pathogen/autoload/pathogen.vimset nocompatible " be iMproved,
requiredfiletype off " required" set th...
分类:
其他好文 时间:
2014-05-01 08:38:20
阅读次数:
327
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-05-01 08:35:40
阅读次数:
443
用c语言实现
#include
#include
#include
using namespace std;
typedef struct node
{
char x;
struct node *next;
}chan;
chan *root = new chan;
char a[100010];
int main()
{
while(scanf("%...
分类:
编程语言 时间:
2014-04-29 13:47:20
阅读次数:
358
//创建1个线程对象 并为这个线程对象指定要执行的方法.
Thread thread = new Thread(TestThread);
//设置线程为后台线程.
thread.IsBackground = true;
//开启线程
thread.Start();
...
分类:
编程语言 时间:
2014-04-29 13:32:23
阅读次数:
363
1.获取代表控件的对象
2.定义一个类,实现监听器接口
3.生成监听器对象
4.为控件绑定监听器对象
button1 = (Button)findViewById(R.id.button1); //获取XMl中控件id
button1.setOnClickListener(new OnClickListener() //生成监听器对象并且直接...
分类:
移动开发 时间:
2014-04-29 13:32:21
阅读次数:
364
新浪sae的官方说明文档:http://apidoc.sinaapp.com/sae/SaeMysql.html
Class SaeMysql 具体实现:http://apidoc.sinaapp.com/__filesource/fsource_sae__saemysql.class.php.html
新浪官方文档已经给出了简单的示例:
<?php
$mysql = new Sae...
分类:
数据库 时间:
2014-04-29 13:14:20
阅读次数:
407
1.段寄存器
8086CPU有4个段寄存器:CS、DS、SS、ES。当8086CPU访问内存时,由这4个段寄存器提供内存单元的段地址。
CS和IP是8086中最关键的寄存器,他们指示了CPU当前要读取指令的地址。CS是代码段寄存器,IP为指令指针寄存器。在8086PC机中,任意时刻,设CS中的内容是M,IP中的内容是N,8086CPU将从内存地址:M*16+N处读取指令并执行。也可以这...
分类:
其他好文 时间:
2014-04-29 13:13:21
阅读次数:
333