public class Factory2 { /** * @param args 工厂模式
*/ public static void main(String[] args) { // TODO Auto-generated method stub
//工厂模式 Ifactory if...
分类:
其他好文 时间:
2014-04-30 00:13:13
阅读次数:
512
package com.szy.service;import
android.app.Service;import android.content.Intent;import
android.os.IBinder;import android.util.Log;public class Exampl...
分类:
其他好文 时间:
2014-04-30 00:10:08
阅读次数:
510
protected void onCreate(Bundle
savedInstanceState);protected void onStart();protected void
onRestart();protected void onResume();protected void onPaus...
分类:
其他好文 时间:
2014-04-29 23:53:49
阅读次数:
688
1、自定义Back按钮iOS中很多时候我们都会自定义返回按钮,也是一件easy的事,类似如下:
1 - (void)showNavBackButton 2 { 3 UIButton *backButton = [UIButton
buttonWithType:UIButtonTypeCust...
分类:
移动开发 时间:
2014-04-29 23:38:27
阅读次数:
1253
// 题意: // 输入两个整数N, H,按照字典序输出所有长度为N,恰好包含H个1的01串
// 规模:1#include#include#include#includeusing namespace std;int n,h;int
buf[16];void solve(int c0, int c...
分类:
其他好文 时间:
2014-04-29 23:19:55
阅读次数:
416
public abstract
classAsyncTaskextendsObjectjava.lang.Object?android.os.AsyncTaskClass
OverviewAsyncTask enables proper and easy use of the UI thread. ...
分类:
移动开发 时间:
2014-04-29 21:05:32
阅读次数:
748
protected void Button1_Click(object sender,
EventArgs e) { string conStr =
ConfigurationManager.ConnectionStrings["lianxiConnectionString"].Connection...
分类:
其他好文 时间:
2014-04-29 20:10:07
阅读次数:
490
在串匹配模式中,KMP算法较蛮力法是高效的算法,我觉得其中最重要的一点就是求next数组:看了很多资料才弄明白求next数组是怎么求的,我发现我的忘性真的比记性大很多,每次看到KMP算法求next数组都得花很长时间去看怎么求,虽然看了很多遍了,但还是容易忘,所以我今天非得把它记下来,这样我下次看到的...
分类:
其他好文 时间:
2014-04-29 19:26:58
阅读次数:
429
今天想探索一下cocos2dx的内存管理,我们就先从CCObject开始吧class
CC_DLL CCObject : public CCCopying{public: // object id, CCScriptSupport need
public m_uID unsigned i...
分类:
其他好文 时间:
2014-04-29 18:51:08
阅读次数:
575
{使用一般处理程序动态生成验证码}1.新建WebSite项目,添加一般处理程序命名为yzm.ashx,添加如下代码:
public void ProcessRequest(HttpContext context) {
//将context.Response.ContentType = "text/p...
分类:
Web程序 时间:
2014-04-29 18:33:35
阅读次数:
501