搜索到与相关的文章
编程技术

面试题之苹果问题

面试题问题描述:1000个苹果放在10个箱子里,10个箱子一模一样且要求每个箱子都放有苹果,问共有多少种放法?参考:呵呵,假设c(x,n)为x个apple放入n个箱子的所有放法(没有至少一个的限制)有这样的递推公式c(x,1)=1;c(x,n)=c(x,n-1)+c(x-n,n-1)+c(x-2*n,n-1)+...c(x-i*n,n-1)+...+c(x%n,n-1);写成程序就是#includeusingnamespacestd;t

系统 2019-08-29 22:20:08 2558

编程技术

使用TextView/EditText应该注意的地方

根据宽度高度自适应文字大小,如果textview宽度太窄了,字体会自动变小http://www.23code.com/autoscaletextview/CreditCardEntry实现信用卡或银行卡号数字每四位数字分隔http://www.23code.com/creditcardentry/IconicDroid实现图形文字,可以像设置文字一样,设置图标大小和颜色。http://www.23code.com/iconicdroid/Emojicon支

系统 2019-08-29 22:17:28 2558

Java

Failed to create the Java Virtual Machine

版本:eclipse-jee-helios-win32自己电脑上装的jdk版本是:1.6.0_20解压后启动,发现弹出提示框“FailedtocreatetheJavaVirtualMachine”解决方法:找到eclipse目录下的eclipse.ini,可以看到如下内容:-startupplugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar–launcher.libraryplugins/org

系统 2019-08-12 09:29:49 2558

Java

OpenCv的Java,C++开发环境配置

1.OpenCV下载及安装配置opencv的下载地址:http://opencv.org/downloads.html最新版本:opencv3.0.0注意:支持的visualstudio2013我们可以下载稳定版本:opencv2.4.11安装:双击opencv-2.4.11解压到某一目录下即可配置:在系统环境变量Path中,添加相应的路径。32位添加:C:\opencv\opencv2.4.11\build\x86\vc10\bin64位添加:C:\op

系统 2019-08-12 09:27:14 2558

各行各业

Maven Installation

OS:Ubuntu14.04Extractthedistributionarchive,i.e.apache-maven-3.2.2-bin.tar.gztothedirectoryyouwishtoinstallMaven3.2.2.Theseinstructionsassumeyouchose/usr/local/apache-maven.Thesubdirectoryapache-maven-3.2.2willbecreatedfromthearch

系统 2019-08-12 09:26:50 2558

数据库相关

Database: index

Thewholepointofhavinganindexistospeedupsearchqueriesbyessentiallycuttingdownthenumberofrecords/rowsinatablethatneedtobeexamined.anindexisadatastructure(mostcommonlyaB-tree)thatstoresthevaluesforaspecificcolumninatable.Anindexiscre

系统 2019-08-12 01:54:23 2558

数据库相关

Foundation Sorting: Single List Insertion So

/*ListInsertionSorting.*Implementationhistory:.*2013-09-15,MarsFu,firstversion.*/#include"stdafx.h"#include"list_insertion.h"intinit_list(structs_clist*hd,intmax_cnt,structs_nodes*nodes){if(hd==NULL)return0;if(max_cnt<0)return0;hd

系统 2019-08-12 01:54:17 2558

Oracle

[Oracle]初识Oracle8i(8.0.5)

安装的版本是8.0.5听说不同的版本界面大不一样,郁闷ing进入OracleStorageManager:(1)打开vag,(2)username:system/manager建表:(1)右击Tablespaces,create...(2)填上Name(示范:Test),Add...,Name里填数据库在你机器上的文件如d:\test\test.ora(3)Size:100M,AutoExtend:1M建用户:(1)用username:internal/o

系统 2019-08-12 01:53:39 2558

数据库相关

封装业务函数

链式调用-封装业务函数用设计模式、AOP能将一个方法/函数包裹起来,并且插入额外的逻辑行为,不过动作比较大,不是很灵活,下面介绍一种链式调用方法来封装的代码,完成后能实现如下的链式调用:publicclassBO{publicboolAdd(stringmsg){Console.WriteLine("Add");if(msg==null)thrownewException();returntrue;}}staticvoidMain(string[]args

系统 2019-08-12 01:53:20 2558

Oracle

Oracle 基础学习之索引

一.按存储结构分a.b树索引默认索引即二叉搜索树:1.所有非叶子结点至多拥有两个儿子(Left和Right)2.所有结点存储一个关键字;3.非叶子结点的左指针指向小于其关键字的子树,右指针指向大于其关键字的子树;如:B树的搜索,从根结点开始,如果查询的关键字与结点的关键字相等,那么就命中;否则,如果查询关键字比结点关键字小,就进入左儿子;如果比结点关键字大,就进入右儿子;如果左儿子或右儿子的指针为空,则报告找不到相应的关键字;如果B树的所有非叶子结点的左右

系统 2019-08-12 01:53:16 2558