在Xcode6之前,新建一个工程的时候,系统会帮我们自动新建一个以工程名为名字的pch (precompile header)文件.但是在Xcode6之后系统默认就不会帮我们创建pch。 首先,Command+N,打开新建文件窗口:ios->other->PCH file,创建一个pch文件...
分类:
其他好文 时间:
2015-04-19 14:24:52
阅读次数:
147
正则表达式简单语法总结 一、什么是正则表达式 ????????从概念上来说,正则表达式也是一门小巧而精炼的语言,它可以用来简化检索特定的字符串,替换特定字符等功能,有许多开发语言工具,都内嵌支持正则表...
分类:
其他好文 时间:
2015-04-19 13:19:21
阅读次数:
139
strrchr char?*ho_strrchr(const?char?*s,?int?c)?{
????const?char?*p;?
????unsigned?char?cc?=?c;
????for?(p?=?s;?*p;?p++);
????while?(s?<=?p)?{
????????...
分类:
其他好文 时间:
2015-04-19 13:19:11
阅读次数:
156
题目大意:将两个字符串结合起来,他们的公共子串只输出一次
根据LCS的原理,将每个字符都进行标记,看两个字符串中对应的字符究竟处于什么状态,然后输出,其标记为公共子串的字符只输出一次即可,也是一道模板题了。
http://blog.csdn.net/libin56842/article/details/9618529
#include
#include
#include
using...
分类:
其他好文 时间:
2015-04-19 13:19:25
阅读次数:
117
之前大一的时候有几天闲来无事,为了学习做了一个可以自动生成迷宫,可以寻找最短路径的小游戏,现在整理分享一下简单介绍:利用不相交集类考虑一个迷宫的生成,一个简单算法就是从各处的墙壁开始(除入口和出口之外)。此时,不断地随机选择一面墙,如果被该墙分割的单元彼此不联通,那么就把这面墙拆掉。重复这个过程直到开始单元和终止单元联通,那么就得到一个迷宫。实际上不断的拆掉墙壁直到每个单元都可以从其他单元到达更好(...
分类:
其他好文 时间:
2015-04-19 13:20:15
阅读次数:
432
java使用try-catch语句来处理异常,将可能出现的异常操作放在try-catch语句的try部分,一旦try部分抛出异常,或调用某个可能抛出异常的方法,并且该方法跑出了异常对象,那么try部分将立刻结束执行,专项执行相应的catch部分,所以程序可以将发生异常后的处理放在catch中,try-catch语句可以有多个catch组成,分别处理发生的相应异常,
public ...
分类:
其他好文 时间:
2015-04-19 13:18:36
阅读次数:
128
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 22424
Accepted: 11300
Description
Due to recent rains, water has pooled in various places in Farmer John's field, whic...
分类:
其他好文 时间:
2015-04-19 13:18:51
阅读次数:
142
hover,我们都知道,是监听组件“悬停状态”的一个伪类。我们一般通过hover来修改组件的背景什么的,很少涉及到太复杂的操作。也就是说我们一般只是对加了hover伪类的元素自身的样式进行改变,比如这样:
姓名 :<input type="text" name...
分类:
其他好文 时间:
2015-04-19 13:17:21
阅读次数:
143
最近有点忙,好久没写博客了,突然发现csdn博客编辑器用了markdown,真心有些小激动,结果不知道怎么改字号大小和字体颜色…最后找到了答案:效果:
文字代码:文字...
分类:
其他好文 时间:
2015-04-19 13:20:11
阅读次数:
166
如何在centos7下面配置caffe深度学习框架...
分类:
其他好文 时间:
2015-04-19 13:16:39
阅读次数:
149
(命令用绿色粉刷)
查看设备USB命令:ls /dev/ttyUSB*
先插入PC的设备序号小,比如先后插入OpenJTAG设备、USB转串口设备
它们就分别是ttyUSB0和ttyUSB1
登录telnet的命令:telnet localhost 4444
ln 命令:这个命令是为某一个在另一个位置创建一个链接,这个命令最常用的参数是-s,具体用法是:ln –s 源...
分类:
其他好文 时间:
2015-04-19 13:17:07
阅读次数:
127
package com.ccg.mygame2048;
import java.util.ArrayList;
import java.util.List;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android....
分类:
其他好文 时间:
2015-04-19 13:17:35
阅读次数:
205
#include
#include
#include
using namespace std;
int main()
{
int count = 0;
while(malloc(1204*1204))
{
count++;
}
cout<<count<<endl;
cout<<(count/1024)<<"G"<<endl;
return 0;
}我的总内存是4G,...
分类:
其他好文 时间:
2015-04-19 13:15:46
阅读次数:
84
Frequent users of putty should have encountered the Putty (inactive) problem. This happens because servers are usually configured to disconnect idle sessions after they are inactive for a particular t...
分类:
其他好文 时间:
2015-04-19 13:16:21
阅读次数:
208
A:点击打开链接
CSU 1561 (More)Multiplication
题意:把两个数的乘积每个位置的结果填充上去。
注意这个矩阵最大是1e8,所以不能开数组。
模拟题
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
usi...
分类:
其他好文 时间:
2015-04-19 13:16:53
阅读次数:
169
Continuous LearningClint ShankWE LiVE iN iNTERESTiNG TiMES. As development gets distributed across the globe, you learn there are lots of people capable of doing your job. You need to keep learning to...
分类:
其他好文 时间:
2015-04-19 13:14:21
阅读次数:
149
Distinguish Business Exceptions from TechnicalDan Bergh JohnssonTHERE ARE BASiCALLY TWO REASONS that things go wrong at runtime: technical problems that prevent us from using the application and busine...
分类:
其他好文 时间:
2015-04-19 13:14:32
阅读次数:
109