摘要: 4. 副作用 在一些语言如Pascal中,子程序被分成两种:函数和过程。尽管Java没有强制性地要求将方法区分为命令和函数。然而这样的差别对于良好地设计程序有非常大的帮助[1]。 首先说明一个概念:副作用(side effect)。副作用通常是针对操作(表达式)而言的,一个操作/表达式有“副作用”是 阅读全文
posted @ 2017-05-22 21:36 cxchanpin 阅读(238) 评论(0) 推荐(0)
摘要: time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Little penguin Polo adores strings. But 阅读全文
posted @ 2017-05-22 20:26 cxchanpin 阅读(183) 评论(0) 推荐(0)
摘要: In an attempt to remove duplicate elements from list, I go to the lengths to take advantage of methods in the java api. After investiagting the docume 阅读全文
posted @ 2017-05-22 19:53 cxchanpin 阅读(187) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-05-22 18:20 cxchanpin 阅读(188) 评论(0) 推荐(0)
摘要: Aptana简单介绍 Aptana是一个很强大,开源,专注于JavaScript的Ajax开发IDE它的特性包含: 1、JavaScript,JavaScript函数,HTML,CSS语言的Code Assist功能 2、Outliner(大纲):显示JavaScript,HTML和CSS的代码结构 阅读全文
posted @ 2017-05-22 17:12 cxchanpin 阅读(169) 评论(0) 推荐(0)
摘要: 语言集成查询(LINQ)是 Visual Studio2008中引入的一组功能。可为 C# 和 Visual Basic 语言语法提供强大的查询功能。 LINQ引入了标准易学的数据查询和更新模式,能够扩展该方法来支持不论什么类型的数据存储。 Visual Studio 包含 LINQ 提供程序集,后 阅读全文
posted @ 2017-05-22 15:46 cxchanpin 阅读(167) 评论(0) 推荐(0)
摘要: 变量命名: 1)必须以字符或下划线开头 2)以单下划线开头(_fo)表示不能直接訪问的类属性,须要类提供的接口进行訪问 3)以双下划线开头(__foo)的代表类的私有成员 4)以双下划线开头(__foo__)和结尾的代表python中特殊方法专用的标识,比如__init__()代表类的构造函数 全局 阅读全文
posted @ 2017-05-22 14:59 cxchanpin 阅读(203) 评论(0) 推荐(0)
摘要: 写一个类继承自 SQLiteOpenHelper 系统会自己主动加入构造方法、 onCreate方法、onUpgrade方法 当数据库里面数据或者表结构有所修改时。咱们须要升级数据库 这个时候。版本号加1.在update里面做对应改动。 须要注意的是,假设须要測试update,每次開始測试,vers 阅读全文
posted @ 2017-05-22 14:28 cxchanpin 阅读(1601) 评论(0) 推荐(0)
摘要: 2,加入信息投诉和改动投诉信息模块 关于投诉信息的加入模块和改动模块均使用的是一个窗口,其其差别是依据向窗口中所传递的參数来实现的,这个模块的投诉主题,投诉客户和投诉内容是必填项,当加入时。投诉其主要功能就是向CustomerManagement数据库的inform数据表中插入服务的基本信息。当更改 阅读全文
posted @ 2017-05-22 13:43 cxchanpin 阅读(229) 评论(0) 推荐(0)
摘要: 本来计划今天发Android的官方技术文档的翻译——《Gradle插件用户指南》的第五章的,只是因为昨天晚上没译完,还差几段落,所以仅仅好推后了。 今天就说一下使用Gradle进行类似友盟这种多渠道打包的方法吧。 本文原创,转载请注意在CSDN上的出处: http://blog.csdn.net/m 阅读全文
posted @ 2017-05-22 12:43 cxchanpin 阅读(974) 评论(0) 推荐(0)
摘要: 1、项目Src下创建drawable 看文档Develop/API Guides/App Resources/Drawable/Shape Drawable 单词:corners : 角 ; gradient :梯度; solid:固定的。 stroke: 边框--能够做下划线 Rectangle 阅读全文
posted @ 2017-05-22 11:37 cxchanpin 阅读(314) 评论(0) 推荐(0)
摘要: 给出两点,求这两点在图上的最短路径 分别以最上,左下,右下为顶点,看这个三角图形 ans=这三种情况下两点的层数差 #include "stdio.h" #include "string.h" #include "math.h" int main() { int n,m,sn,sm,rn,rm,ln 阅读全文
posted @ 2017-05-22 10:57 cxchanpin 阅读(149) 评论(0) 推荐(0)
摘要: <pre class="html" name="code"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <p> 块状元素 通常是其它元素的容器。可容纳内联元素和其它块状元素,块状元 阅读全文
posted @ 2017-05-22 10:02 cxchanpin 阅读(383) 评论(0) 推荐(0)
摘要: 本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie 经验:class 和 templates 都支持接口和多态。 对 classes 而言接口是显式的,以函数签名为中心。多态则是通过 virtual 函数发生于执行期 对 templates 參 阅读全文
posted @ 2017-05-22 08:34 cxchanpin 阅读(168) 评论(0) 推荐(0)