《大话设计模式》——读后感 (12)在NBA我需要翻译?——适配器模式【结构型模式】 ...
分类:
其他好文 时间:
2017-07-11 23:26:18
阅读次数:
249
题目地址 https://pta.patest.cn/pta/test/16/exam/4/question/678 5-16 Sort with Swap(0, i) (25分) Given any permutation of the numbers {0, 1, 2,..., N-1N?1}, ...
分类:
编程语言 时间:
2017-07-09 13:42:44
阅读次数:
531
1. 判断是否是奇数: public static boolean isOdd(int i) { return i %2 != 0 ; } 2. System.out.println(2.0 - 1.1); 输出:0.89999999 99999999 (Double型的) System.out.p ...
分类:
编程语言 时间:
2017-07-09 10:26:27
阅读次数:
198
这里先有一个问题: 问题描述:函数int getVertexCount(Shape * b)计算b的顶点数目,若b指向Shape类型,返回值为0;若b指向Triangle类型,返回值为3;若b指向Rectangle类型,返回值为4。 其中,Triangle和Rectangle均继承于Shape类。 ...
分类:
编程语言 时间:
2017-07-07 23:31:42
阅读次数:
226
Recent linux kernels have a feature called Address Space Layout Randomization (ASLR).ASLR is a feature that is activated by default on some of the new ...
分类:
其他好文 时间:
2017-07-07 16:39:54
阅读次数:
376
Caliburn.Micro学习笔记(五) 协同IResult 今天说一下协同IResult 看一下IResult接口 /// <summary> /// Allows custom code to execute after the return of a action. /// </summar ...
分类:
其他好文 时间:
2017-07-06 23:46:01
阅读次数:
303
first: Intent跳转一般存用于Activity类,可是若要在非activity类里跳转的话,解决方法是在startActivity(intent)前加mContext即上下文,终于为:mContext.startActivity(intent); 换言之。以后在非activity类里调用a ...
分类:
移动开发 时间:
2017-07-06 14:20:18
阅读次数:
329
R in action -- 2.3 数据输入 1、从CSV文件导入数据 2、从Excel导入数据 安装openxlsx包 ...
分类:
其他好文 时间:
2017-07-06 00:33:50
阅读次数:
201
查看别名: alias设置别名: 临时设置: alias show='ls -al' 永久生效: 修改 家目录/.bashrc [root@localhost ~]# cat .bashrc # .bashrc # User specific aliases and functions alias ...
分类:
系统相关 时间:
2017-07-05 23:39:03
阅读次数:
259
/* * Copyright 2002-2015 the original author or authors.// * 2002 - 2015年版权所有作者或作者 * Licensed under the Apache License, Version 2.0 (the "License"); * ...
分类:
编程语言 时间:
2017-07-04 20:23:22
阅读次数:
286