Given two stringssandt, write a function to determine iftis an anagram ofs.For example,s= "anagram",t= "nagaram", return true.s= "rat",t= "car", retur...
分类:
其他好文 时间:
2015-09-05 11:04:24
阅读次数:
146
抽象类和接口抽象类和接口Table of Contents相关阅读abstractabstract class Car { abstract function func1();}class Fastcar extends Car { public function func1() { ... }}继...
分类:
其他好文 时间:
2015-09-04 07:20:40
阅读次数:
139
plist :模型Car 1 #import 2 3 @interface CZCar : NSObject 4 5 /** 6 * 汽车名称 7 */ 8 @property (nonatomic,copy) NSString *name; 9 10 /**11 * 汽车的图标12...
分类:
移动开发 时间:
2015-09-03 23:12:29
阅读次数:
247
interface?Car?{
?public?void?drive();
}
?
class?Benz?implements?Car?{
?public?void?drive()?{
??System.out.println("Benz");
?}
}
?
class?Bmw?implements?Car?{
?public?void?d...
分类:
其他好文 时间:
2015-08-30 19:44:29
阅读次数:
189
———————————————————————————————————————————
多个对象内存管理(野指针&内存泄漏)
(注:这一部分知识请结合“单个对象内存管理”去理解)
这一部分的知识比较简单,就牵扯到一个会产生野指针的情形和如何避免内存泄漏问题。
代码:
#import
@interface Car : NSObject
-(void)run...
分类:
其他好文 时间:
2015-08-30 11:28:41
阅读次数:
194
【题目】
Given two strings s and t, write a function to determine if t is an anagram of s.For example,
s = “anagram”, t = “nagaram”, return true.
s = “rat”, t = “car”, return false.Note:
You may assume...
分类:
编程语言 时间:
2015-08-29 17:08:05
阅读次数:
217
HangOver
Problem Description
How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the car...
分类:
其他好文 时间:
2015-08-28 19:52:20
阅读次数:
130
从网上查了一些资料,自己也总结一下using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace factory{ //抽象产品角色 public interface Car { ...
分类:
其他好文 时间:
2015-08-28 19:02:17
阅读次数:
95
IPV4与IPV6地址
前言
昨天电脑让别人限速了,昨天晚上还做了一个噩梦,我是不是应该学点网络安全的知识,这样的话,我不去侵犯别人,别人侵犯我,我也能自保,其实如果大家都好好的,你别惹我,我也不惹你多好,咱天看了一篇关于黑帽和白帽的文章,有人当黑帽为了快感,为了挣钱,或者为了别的,当白帽的人则想维护网络的安全,我没权利说谁好谁坏,总之个人觉得应该学...
分类:
其他好文 时间:
2015-08-28 11:09:13
阅读次数:
140