1 int xfun(int *a,int n) 2 { 3 int x = *a;//a的类型是int *,a+1跳动一个int的长度 4 for (int *pa = a + 1; pa < a + n; pa++)//指向同一个类型的指针比较大小,相减是两者之间的元素个数 5 { 6 //st ...
分类:
其他好文 时间:
2017-10-15 11:06:56
阅读次数:
206
Linux服务器运行久时,系统时间就会存在一定的误差,一般情况下可以使用date命令进行时间设置,但在做数据库集群分片等操作时对多台机器的时间差是有要求的,此时就需要使用ntpdate进行时间同步。date命令:date:查看当前时间,结果如下:TueMar401:36:45CST2014date-s09:38:40..
分类:
其他好文 时间:
2017-10-13 14:55:02
阅读次数:
227
机器上装了两个python,一个是默认的,一个是anaconda。安装opencv时就报错了: -- Found PythonInterp: /home/deeplp/anaconda2/bin/python2 (found suitable version "2.7.12", minimum re ...
分类:
编程语言 时间:
2017-10-08 13:03:32
阅读次数:
733
jmeter3.0以上支持生成dashboard的html报告,官网介绍:https://jmeter.apache.org/usermanual/generating-dashboard.html 效果图: 具体配置如下: 1. 打开jmeter安装目录下的user.properties,增加如下 ...
分类:
Web程序 时间:
2017-09-30 19:57:20
阅读次数:
880
Given two positive integers a and b,find suitable X and Y to meet the conditions: X+Y=a Least Common Multiple (X, Y) =bInputInput includes multiple se ...
分类:
其他好文 时间:
2017-09-29 21:27:08
阅读次数:
240
今天出现编码出现了No suitable driver found for jdbc,又是找遍了网上的资料,基本上都说是三个问题: 一是:连接URL格式出现了问题(Connection conn=DriverManager.getConnection("jdbc:mysql://localhost: ...
分类:
数据库 时间:
2017-09-25 00:54:12
阅读次数:
261
错误: dyld: could not load inserted library '/Developer/usr/lib/libBacktraceRecording.dylib' because no suitable image found. Did find: /Developer/usr/l ...
分类:
其他好文 时间:
2017-09-13 13:17:48
阅读次数:
222
After optimization of structural solution , I must prepare the bom and drawing circuit diagram as soon as possible. 1 selection the suitable component ...
分类:
其他好文 时间:
2017-09-07 19:29:44
阅读次数:
231
No suitable driver found for jdbc:oracle:thin:@192.168.7.146:1521:oracle 这个错误的原因主要有以下几方面的原因: 1. url配置错误(类似于下面这种) 2. JDK版本,JDBC版本,以及数据库版本不一致导致的错误。 首先要保 ...
分类:
数据库 时间:
2017-09-05 22:04:52
阅读次数:
175
同步时间 配置文件中/etc/chrony.conf 里面指定: server master iburst keyfile /etc/chrony.keys commandkey 1 allow all 在/etc/chrony.keys文件中添加: 1 password 将chrony.conf以 ...
分类:
其他好文 时间:
2017-08-31 23:09:03
阅读次数:
195