ARC环境下的单例模式:static id _instance = nil; + (id)allocWithZone:(struct _NSZone *)zone { if (_instance == nil) { static dispatch_once_...
分类:
其他好文 时间:
2015-09-10 15:49:02
阅读次数:
122
CocoaPods安装和使用教程Code4App 原创文章。转载请注明出处:http://code4app.com/article/cocoapods-install-usage目录CocoaPods是什么?如何下载和安装CocoaPods?如何使用CocoaPods?场景1:利用CocoaPods...
分类:
其他好文 时间:
2015-09-10 15:46:34
阅读次数:
178
JAVA的容器---List,Map,SetCollection├List│├LinkedList│├ArrayList│└Vector│ └Stack└SetMap├Hashtable├HashMap└WeakHashMapCollection接口 Collection是最基本的集合接口,一个C....
分类:
其他好文 时间:
2015-09-10 15:47:30
阅读次数:
200
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:
其他好文 时间:
2015-09-10 15:45:51
阅读次数:
111
IOS,input出现阴影:input[type="text"],input[type="email"],input[type="search"],input[type="number"],input[type="password"] { -webkit-appearance: none; /...
分类:
其他好文 时间:
2015-09-10 15:47:09
阅读次数:
116
grep的-A-B-选项详解(转)[@more@]grep能找出带有关键字的行,但是工作中有时需要找出该行前后的行,下面是解释1. grep -A1 keyword filename找出filename中带有keyword的行,输出中除显示该行外,还显示之后的一行(After 1)2. grep -...
分类:
其他好文 时间:
2015-09-10 15:46:48
阅读次数:
127
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999. 1 string intToRoman(int num) { 2 ...
分类:
其他好文 时间:
2015-09-10 15:45:09
阅读次数:
130
上次BC遇到一个大数题目,没有大数模板和不会使用JAVA的同学们GG了,赛后从队友哪里骗出大数模板。2333333,真的炒鸡nice(就是有点长),贴出来分享一下好辣。 1 //可以处理字符串前导零 2 #include 3 #include 4 #include 5 #incl...
分类:
其他好文 时间:
2015-09-10 15:46:26
阅读次数:
207
Tree of TreeTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onZJU. Original ID:320164-bit integer IO format:%lld Java class name:Ma...
分类:
其他好文 时间:
2015-09-10 15:45:54
阅读次数:
173
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2015-09-10 15:45:55
阅读次数:
114
头文件#pragma once#include "D:\Work\山东项目\StandardizedDrawing\sdUtils\CSGrid.h"#include "ZwLResources.h"class CPaneGrid : public CSGrid{public: CPaneGrid(...
分类:
其他好文 时间:
2015-09-10 15:45:33
阅读次数:
146
text-align属性是针对 内联元素居中得属性设置,对于块状元素使用margin:0 auto;来控制居中;笔者在设置一个h2标签时设置了text-align:center;但是却始终出现在中间偏左得位置,第一反应是可能样式冲突了,但是经过查找没有发现冲突,而且换了p标签也是不行,最终通过谷歌审...
分类:
其他好文 时间:
2015-09-10 15:43:02
阅读次数:
167
1. 如果采用同步处理,其实,是可以多次接受数据的,MemoryStream ms = new MemoryStream(); while (true){ Console.WriteLine("Available :{0}", socket.Available); int receivedByte....
分类:
其他好文 时间:
2015-09-10 15:45:26
阅读次数:
127
http://blog.csdn.net/mazhen1986/article/details/7791430Storyboard 是在 iOS 5 SDK 中才出现的新名词,它其实就是原本的 Xib 档案(Interface Builder),用来制作介面排版方面的工具,当然在 Storyboar...
分类:
其他好文 时间:
2015-09-10 15:42:19
阅读次数:
162
前言: 作为一个ITer, 是否有如下类似的经历? 公司工作心有余力, 或是手头紧想攒点外快. 于是乎尝试去接软件外包, 然而结局往往是"肉包子打狗, 一去不复返"这样的悲剧. 事情的过程, 有些是热脸贴冷屁股, 有些是初见时交谈甚欢, 仿若相见恨晚, 等到你提交设计文档和报价后...
分类:
其他好文 时间:
2015-09-10 15:41:37
阅读次数:
186
一天四个不同的机器人a、b、c和d在一张跳舞毯上跳舞,这是一张特殊的跳舞毯,他由4个正方形毯子组成一个大的正方形毯子,一开始四个机器人分别站在4 块毯子上,舞蹈的每一步机器人可以往临近(两个毯子拥有同一条边视为临近)的一个毯子移动或停留在原来的毯子(同一块毯子可以有多个机器人停留),这个时 候机器人...
分类:
其他好文 时间:
2015-09-10 15:43:05
阅读次数:
177
1.我觉得编译原理学的主要是变成的计算机的语言,语法,要点,和翻译成目标代码的过程。2.因为作为软件工程的学生,日后会对软件进行开发和设计,都要用到算法,所以学习编译的原理很重要。3.多看看书本和有关编译原理的书本,如龙书,虎书。。多做练习从中理解他的算法思想,也可以自己制作一个编译器来实践一下。4...
分类:
其他好文 时间:
2015-09-10 15:42:22
阅读次数:
124