#include
#include
#define maxn 100
#define INF -1
int map[maxn][maxn];
int n, m, path[maxn][maxn];
void Floyd(int n)
{
int i, j, k;
for(k = 0; k < n; ++k)
for(i = 0; i < n; ++i)
...
分类:
其他好文 时间:
2014-07-28 16:12:05
阅读次数:
205
Returning a Result as the Argument
在希望通过函数的参数返回Objective-C 对象...
分类:
其他好文 时间:
2014-07-28 16:02:53
阅读次数:
354
解析根据文件里面的内容,读入一个城市,输出所在首字母
比如读入 长春 输出 c
读入 北京 输出 b
不知道文本中的字体是什么格式 读取文件时 程序不能正确运行
运用oc中的字典
initWithObjectsAndKeys 初始化 用值和键
#import
int main(int argc,const char *argv[])
#define PATH @"/Users...
分类:
其他好文 时间:
2014-07-28 15:59:23
阅读次数:
397
java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not exit.
在用maven管理的spring项目中做单元测试时候,加载不了spring的配置文件。出现该问题的原因是,用maven创建的项目,必须把spring的配置文件beans.xml或者app...
分类:
编程语言 时间:
2014-07-28 15:56:13
阅读次数:
187
网上关于sublime配置的不少,但有的配置编译运行居然更本没法输入!!!
现在写一个靠谱点的配置:
//Ubuntu Sublime_text3 clang 编译的简单配置:
{
"cmd": ["clang++", "${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:...
分类:
其他好文 时间:
2014-07-28 15:55:33
阅读次数:
226
Your task is to write a program that can decide whether you can find an arithmetic expression consisting of five given numbers (1 {1,2,3,4,5} is a bij...
分类:
其他好文 时间:
2014-07-28 15:33:03
阅读次数:
230
看第一种情形:用String做字符串连接操作 连接一万次public class Demo_01 { public static void main(String[] args) { String str = "123"; String[] temp = new S...
分类:
其他好文 时间:
2014-07-28 15:27:53
阅读次数:
258
本篇主要介绍一些常用的IO操作,对文件和目录的操作;留给自己复习之用。1.创建文件 string sPath1=Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); string ...
分类:
其他好文 时间:
2014-07-28 15:27:43
阅读次数:
288
7. write a function cn random an array.public class xiaodan_random { Random rand = new Random(); public void swap(int[] array, int i, int j){ ...
分类:
其他好文 时间:
2014-07-28 15:27:23
阅读次数:
206
1、下载 http://www.apache.org/dist/flume/stable/下载最新的tar.gz包即可2、解压tar -zxvf ....3、配置环境变量FLUME_HOME和PATH记得执行source /etc/profile4、添加一个简单的测试案例a、在conf目录下新建一个...
分类:
其他好文 时间:
2014-07-28 15:07:43
阅读次数:
170