1 .386 2 .model flat 3 .stack 4096 4 include io.h 5 ExitProcess proto near32 stdcall, ExitCode:dword 6 cr equ 0dh 7 lf equ 0ah 8 .data 9 string1 byte....
分类:
其他好文 时间:
2014-06-19 00:40:28
阅读次数:
269
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.思路:这是一道字符串匹配的函数,就是找出needle...
分类:
其他好文 时间:
2014-06-18 22:16:17
阅读次数:
236
非常菜的iOS菜鸟一枚~~~~~最近做项目里需要一个搜索框,UI设计的是使用自定义的外观,所以需要修改很多内置的东西,写代码和调试的过程搜了很多资料,也在stack上问了很多问题,发现关于UISearchBar的资料少得可怜,尤其是iOS7里search bar的资料更是几近没有,所以我整理了一下我...
分类:
其他好文 时间:
2014-06-18 20:46:54
阅读次数:
222
2014-06-16 BaoXinjian一、摘要在需求后期,对实现该需求的代码进行调试时一个不可忽略的步骤,可以确保代码在上线后尽可能避免出现bug和异常在OAF开发中一般相关的部分主要有1. 使用OAF Bug工具调试代码设定Breakpoint断电查看Exception Stack Trace...
分类:
其他好文 时间:
2014-06-18 19:00:31
阅读次数:
556
see also :http://www.w3school.com.cn/js/pro_js_inheritance_implementing.asphttp://davidshariff.com/blog/javascript-inheritance-patterns/Object masquer...
分类:
编程语言 时间:
2014-06-18 16:43:34
阅读次数:
239
不多说,直接看代码:/*上传文件的WebService*/using System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using System.Data;usin...
分类:
Web程序 时间:
2014-06-17 21:32:10
阅读次数:
219
题目
Implement strStr().
Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.
方法
只需要遍历一遍即可。
public String strStr(String...
分类:
其他好文 时间:
2014-06-16 19:07:08
阅读次数:
188
题目
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
If such arrangement is not possible, it must rearrange it as the low...
分类:
其他好文 时间:
2014-06-16 18:48:33
阅读次数:
170
demo代码如下。欢迎指正与讨论。#include<iostream>
#include<queue>
#include<stack>
usingnamespacestd;
template<typenameT>
structBinaryNode{
Telem;
BinaryNode*left;
BinaryNode*right;
BinaryNode(Td,BinaryNode*l=NULL,BinaryNode*r=NUL..
分类:
其他好文 时间:
2014-06-16 16:35:05
阅读次数:
278
LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get...
分类:
其他好文 时间:
2014-06-14 23:54:37
阅读次数:
352