/*
* os.cpp: for linux os methods
*/
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define UNIT_TEST 1
// os class
class OS
{
p...
分类:
系统相关 时间:
2015-05-21 00:10:00
阅读次数:
130
反转链表,用了一个比较笨的方法。public class Solution { public ListNode reverseList(ListNode head) { if(head == null || head.next == null) retur...
分类:
其他好文 时间:
2015-05-21 00:00:01
阅读次数:
285
class Solution {public: bool isMatchCore(string s, string p,int indexS,int indexP){ if (s[indexS] == '\0' && p[indexP] == '\0') return true; if (s...
分类:
其他好文 时间:
2015-05-20 23:54:28
阅读次数:
150
很多的APP中都会用到用户的当前位置信息,本文将实现这个小功能import UIKitimport CoreLocation //添加引用class ViewController: UIViewController,CLLocationManagerDelegate { let locati...
分类:
编程语言 时间:
2015-05-20 23:52:46
阅读次数:
177
//链表:#include using namespace std;//定义结点:struct NODE{ int data;//数据域 NODE *next;//指针域};//链表类:class LIST{ NODE *head;public: //构造函数 LIST...
分类:
其他好文 时间:
2015-05-20 23:50:03
阅读次数:
144
#import @class Order;typedef void (^ResultBlock)(Order *resultOrder);@interface AlipayService : NSObject+(instancetype)shareService;/** * 支付动作,跳转到支付客....
分类:
其他好文 时间:
2015-05-20 23:41:01
阅读次数:
199
import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.Scanner;public class Triangle{ public sta.....
分类:
其他好文 时间:
2015-05-20 23:37:05
阅读次数:
232
XmlConfig.csnamespace Model{ [ Serializable] public class XmlConfig { [ XmlElement] public List Class1; [ XmlElement] ...
分类:
其他好文 时间:
2015-05-20 23:36:53
阅读次数:
204
Eclipse下的Java反编译插件:Eclipse Class Decompiler,整合了目前最好的2个Java反编译工具Jad和JD-Core,并且和Eclipse Class Viewer无缝集成,能够很方便的使用本插件查看类库源码,以及采用本插件进行Debug调...
分类:
编程语言 时间:
2015-05-20 22:33:19
阅读次数:
176
最近在看js,好好打基础才是王道,底层的东西不容忽视。
Js添加样式名,在用jQuery的时候很容易的一个add和remove就能解决的问题,但是用js该怎么样处理呢,刚看了一篇文章,菜鸟级的《JavaScript初学者应注意的七个细节》,原文地址
http://developer.51cto.com/art/201101/242546_2.htm 里面有一段就写了这样一个东西:修改样式名,我稍...
分类:
Web程序 时间:
2015-05-20 22:25:50
阅读次数:
218