ArrayList与数组的区别: 数组是连续的、同一类型数据的一块区域,而集合可以是不连续的、多种数据类型的。 1.ArrayList ArrayList al = new ArrayList(); al.Add(3); al.Add(5.09); al.Add("gfdg"); ...
分类:
其他 时间:
2015-03-07 19:56:39
收藏:
0 评论:
0 赞:
0 阅读:
131
/* * 1.10ReadCommandsFromStandardInputAndExecuteThem.cpp * * Created on: Feb 11, 2015 * Author: sunyj */ #include "../apuesunyj.h"
#include static voi...
分类:
其他 时间:
2015-03-07 19:56:09
收藏:
0 评论:
0 赞:
0 阅读:
236
////////////////////////////////////////////////////////////////////////////////////计算字符串的长度int strlen1(const char *str){int len=0;while (*str++!='\0'...
分类:
其他 时间:
2015-03-07 19:55:49
收藏:
0 评论:
0 赞:
0 阅读:
349
man 3 errno /* * 1.8DemonstrateStrerrorAndPerror.cpp * * Created on: Feb 11, 2015 * Author: sunyj */ #include "../apuesunyj.h" int main(int argc, char...
分类:
其他 时间:
2015-03-07 19:54:49
收藏:
0 评论:
0 赞:
0 阅读:
253
void function() {}A a;void main{ ::atexit(function); A b;};次序如下:1 实例 b 的析构函数 # main 里面的实例的析构函数2 --- main 函数返回---3 function() ...
分类:
其他 时间:
2015-03-07 19:54:39
收藏:
0 评论:
0 赞:
0 阅读:
240
#includeint main(){ int n; char xing; scanf("%d %c",&n,&xing); int num=1,i=1; while(1) { num = num + 2 * (i + 2); //一开始就超出,不改变i if...
分类:
其他 时间:
2015-03-07 19:54:29
收藏:
0 评论:
0 赞:
0 阅读:
221
#includeint main(){ int n; char xing; scanf("%d %c",&n,&xing); int num=1,i=1; while(1) { num = num + 2 * (i + 2); //一开始就超出,不改变i if...
分类:
其他 时间:
2015-03-07 19:53:39
收藏:
0 评论:
0 赞:
0 阅读:
264
突然就看到SPOJ升级了,让我好不适应。。这一一道博弈论的题目,可以先前面暴力一下,易得小于十的为必胜态,十的时候必败,然后11到19又必胜,而且发现只要各位为零且这个数不为零就必败。再依次验证上百,上千的数。。#include#includeint n;int main(){ scanf("...
分类:
其他 时间:
2015-03-07 19:53:29
收藏:
0 评论:
0 赞:
0 阅读:
315
存储程序计算机(The stored program computer)内存存储指令和数据CPU解释指令X86实现(X86 implementation)Registers(寄存器)通用寄存器(General-Purpose Registers)段寄存器(Segment Registers)标志寄存...
分类:
其他 时间:
2015-03-07 19:53:19
收藏:
0 评论:
0 赞:
0 阅读:
307
133.100.11.8 prefer210.72.145.44203.117.180.36131.107.1.10time.asia.apple.com64.236.96.53130.149.17.2166.92.68.246www.freebsd.org18.145.0.30clock.via....
分类:
其他 时间:
2015-03-07 19:52:49
收藏:
0 评论:
0 赞:
0 阅读:
382
DollarsTime Limit: 3000MSMemory Limit: Unknown64bit IO Format: %lld & %llu Submit Status DescriptionNew Zealand currency consists of $100, $50, $20, $...
分类:
其他 时间:
2015-03-07 19:52:39
收藏:
0 评论:
0 赞:
0 阅读:
311
0) 首先讨论一下 cache line 索引定位的方式。 给定一个 32 位虚拟地址,怎么定位 cache line 呢? 答案是 VIPT (virtual indexed, physical taged), 即以虚拟地址作为 cache line 的 set 的索引,物理地址作为 ...
分类:
其他 时间:
2015-03-07 19:51:59
收藏:
0 评论:
0 赞:
0 阅读:
337
0) 背景 有个静态库叫做 slib.lib, 其中包含两个 obj 文件: expofunc1.obj |- void sayHello1() { printf("Hello 1\n"); } |- void sayWorld1() {} expofunc...
分类:
其他 时间:
2015-03-07 19:51:09
收藏:
0 评论:
0 赞:
0 阅读:
241
#df shows no file systems processedPosted by John Quaglieri on 27 July 2012 07:26 AMA df -m command on the system shows:df -mdf: no file systems proce...
分类:
其他 时间:
2015-03-07 19:50:29
收藏:
0 评论:
0 赞:
0 阅读:
302
思路与体会:用rand函数产生随机数32767/327约等于100.2。排除了除数是0的错误, 但是仍有缺陷:减法会出现不够减结果是负数的情况! 运行结果总出现闪退情况,查阅资料后加了system("pause")运行环境:vs2013源代码: #include using...
分类:
其他 时间:
2015-03-07 19:49:59
收藏:
0 评论:
0 赞:
0 阅读:
388
#!perl?-w
use?LWP;
use?Encode;
my?$browser?=?LWP::UserAgent->new();
#$ie->gotoURL(‘http://pingfandeshijie.com‘);
#$ie->WaitforDone();
#$ie->getAllLiks();
$ci?=?1;
#$url?=?‘http://www.p...
分类:
其他 时间:
2015-03-07 18:48:29
收藏:
0 评论:
0 赞:
0 阅读:
299
PagingAndSortingRepository AppleFramework在数据访问控制层采用了Spring Data作为这一层的解决方案, 下面就对Spring Data相关知识作一个较为详细的描述。 1.Spring Data所解决的问题 Spring Data :提供了一整套...
分类:
其他 时间:
2015-03-07 18:47:59
收藏:
0 评论:
0 赞:
0 阅读:
222
我们在使用sudo命令的时候,为了避免交互,可以使用echo‘password‘|sudo-Scmd这样的方式,通过管道传入密码,就不用手动输入了。其中-S的意思是将提示符输入到stderr,并从stdin中读取密码.且密码必须以换行符结尾
分类:
其他 时间:
2015-03-07 18:47:19
收藏:
0 评论:
0 赞:
0 阅读:
304
centos6.4查看和关闭selinuxlinux配置vsftpd服务器搭建git服务器和使用教程
分类:
其他 时间:
2015-03-07 18:46:39
收藏:
0 评论:
0 赞:
0 阅读:
198
前言整体来说,SystemCenterDPM技术预览版的安装过程和之前DPM2012R2的安装过程没有太大的区别,安装完成后的管理界面也没有太大的区别。相信等正式版推出之后,会有大量的新功能和新特性放出来,对新产品的支持会更好。下载的安装包是exe格式的,需要先解压出来。进入到解压后..
分类:
其他 时间:
2015-03-07 18:46:19
收藏:
0 评论:
0 赞:
0 阅读:
328