摘要: 1、指针常量与常量指针 int a = 10; int * const p1 = &a; const int * p2 = &a; p1是不可改变地址的常量,即指针常量,但能够对它所指向的内容进行改动。 p2是指向常量的指针。即常量指针,它所指向的地址内容是不可改动的,但其本身确实能够改动的。 2、 阅读全文
posted @ 2017-07-27 21:11 cxchanpin 阅读(184) 评论(0) 推荐(0)
摘要: 立即就是情人节了,还在为买什么样的礼物给自己的情人而苦恼吗?唉,对方是个极客或者程序猿,也是蛮纠结的一件事啊!那么这篇文章你绝对不能错过,这里推荐的礼物你的极客情人肯定喜欢——再偷偷说一句,想让别人送你,那就@心爱的ta吧!1.漫画人物T恤印有漫画人物或科幻电影名言的T恤,已经掀起了非常长一段时间的 阅读全文
posted @ 2017-07-27 20:23 cxchanpin 阅读(191) 评论(0) 推荐(0)
摘要: watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbG1ub3M=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt=""> 阅读全文
posted @ 2017-07-27 20:03 cxchanpin 阅读(143) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1085 题意:1元。2元。5元的硬币分别有num[1],num[2],num[3]个。问用这些硬币不能组合成的最小钱数。 继续母函数。 有两个注意的地方: 对c2[]初始化的同一时候也要对c1[]初始化。 最后枚举 阅读全文
posted @ 2017-07-27 18:35 cxchanpin 阅读(113) 评论(0) 推荐(0)
摘要: Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return [“0->2”,”4->5”,”7”]. Credi 阅读全文
posted @ 2017-07-27 17:12 cxchanpin 阅读(177) 评论(0) 推荐(0)
摘要: 眼下sublime是mac下最好的文本编辑软件。常常要使用它打开一些文件,比如html,js,txt,json等文件,可是sublime2默认不支持在命令行下调用。经过研究发现能够用建立软连接的方式调用。相同原因应该能够用到mac下其他不支持命令行的软件 系统版本号:10.9.4 能够使用 open 阅读全文
posted @ 2017-07-27 16:30 cxchanpin 阅读(1507) 评论(0) 推荐(1)
摘要: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2017-07-27 15:00 cxchanpin 阅读(153) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-07-27 14:33 cxchanpin 阅读(94) 评论(0) 推荐(0)
摘要: 第一步,引入struts2-convention-plugin-2.2.1.jar 然后,改动配置文件。我是在struts.properties文件里改动的: struts.objectFactory = spring struts.devMode = true struts.i18n.encodi 阅读全文
posted @ 2017-07-27 12:54 cxchanpin 阅读(250) 评论(0) 推荐(0)
摘要: Kali Linux 2.0安装光盘分享 Kali linux 2.0桌面 期待已久的Kali Linux 2.0最终公布了。这里将分享全部版本号的安装光盘。 当中,下载链接:http://pan.baidu.com/s/1i3kytsp password:ckdu Kali Linux 2.0安装 阅读全文
posted @ 2017-07-27 11:18 cxchanpin 阅读(426) 评论(0) 推荐(0)
摘要: 一、数据准备 1. 定义节点 2. 定义链表 1.数据部分 2.节点部分 class DATA //数据节点类型 { String key; String name; int age; } class CLType //定义链表结构 { DATA nodeData =new DATA(); CLTy 阅读全文
posted @ 2017-07-27 10:35 cxchanpin 阅读(410) 评论(0) 推荐(0)
摘要: sqlite3中的约束例如以下: CREATE TABLE CheckTable (rowId integer primary key autoincrement, name text not null, address text default "China", userId text uniqu 阅读全文
posted @ 2017-07-27 09:37 cxchanpin 阅读(355) 评论(0) 推荐(0)
摘要: 1:游戏要求 1. 随机显示 一个名字 与 若干张相片(如3张)。选择正确的相片。 2. 记录老师对每一个学生的认识概率P。并依据认识概率,确定“猜猜看”游戏中学生出现的频率。 认识概率P = 识别的准确次数/(识别的准确次数+识别的错误次数 a) 原则1:认识概率 高的学生,在猜猜看游戏中出现的频 阅读全文
posted @ 2017-07-27 09:06 cxchanpin 阅读(1653) 评论(0) 推荐(0)
摘要: POJ 3181 Dollar Dayz(全然背包+简单高精度加法) http://poj.org/problem?id=3181 题意: 给你K种硬币,每种硬币各自是1美元,2美元…K美元且能够无限使用,问你用上面K种硬币构成n美元的话有多少种方法? 分析: 本题是一道明显的全然背包问题, 只是本 阅读全文
posted @ 2017-07-27 08:30 cxchanpin 阅读(187) 评论(0) 推荐(0)