摘要: shell编程 1 echo -e 识别\转义符 \a \b \t \n \x十六进制 \0八进制 等等 #!/bin/bash echo -e "hello world" 执行脚本:方式1 :chmod 755 hello.sh ./hello.sh 方式2 :bash ./hello.sh(这种 阅读全文
posted @ 2016-01-22 21:05 小德cyj 阅读(313) 评论(0) 推荐(0) 编辑
摘要: linux 命令学习linux注意事项:1 linux严格区分大小写,windows不区分大小写,linux下所有命令都是小写的,linux系统下文件名区分大小写,windows下文件名不区分大小写。 2 linux中所有内容都是以文件形式保存,包括硬盘。如果没有写到文件中,写到内存中,那么重启后则 阅读全文
posted @ 2016-01-22 21:04 小德cyj 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 参考文献: 量子行为粒子群优化算法研究[D], 孙俊 阅读全文
posted @ 2016-01-22 17:31 小德cyj 阅读(1414) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; #define M 50 //群体数目50 #define N 4 //每个粒子的维数4 #define NN 500 //迭代次数 #define chaotic_count 3 //判断是否进入停滞状态 #define gama 0.001 #define R ... 阅读全文
posted @ 2016-01-22 16:55 小德cyj 阅读(3638) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; #define M 50 //群体数目50 #define N 4 //每个粒子的维数4 #define NN 100 //迭代次数 //测试类 class TestFunction { public: double resen(double x1,doubl... 阅读全文
posted @ 2016-01-21 20:11 小德cyj 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 参考文献: 量子行为粒子群优化算法研究[D] ,孙俊,博士论文2.4节.#include #include #include using namespace std;#define M 50 //群体数目50#define N 4 //每个粒子的维数4//测试类class TestFunct... 阅读全文
posted @ 2016-01-21 19:03 小德cyj 阅读(4041) 评论(0) 推荐(0) 编辑
摘要: 1 参考:http://www.testwo.com/blog/6930 mysql数据库默认的编码是:Latin1,要想支持中文需要修改为gbk/utf8的编码格式。1、以root管理员身份查看数据编码格式。登陆命令:>mysql-u root –p输入密码后如下命令查看数据编码格式:show ... 阅读全文
posted @ 2016-01-17 21:36 小德cyj 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 参考自:http://wenku.baidu.com/view/e28bb57c1711cc7931b716a7.html 阅读全文
posted @ 2016-01-12 22:09 小德cyj 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 地址总线AB是专门用来传送地址的,由于地址只能从CPU传向外部存储器或I/O端口,所以地址总线总是单向三态的,这与数据总线不同。地址总线的位数决定了CPU可直接寻址的内存空间大小,比如8位微机的地址总线为16位,则其最大可寻址空间为2^16=64KB,16位微型机的地址总线为20位,其可寻址空间为2 阅读全文
posted @ 2016-01-08 16:43 小德cyj 阅读(770) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.cnblogs.com/derrick/p/4052401.html?utm_source=tuicool&utm_medium=referral#undefined1 概述1.1 简介1.1.1 名词解释公有IP地址:也叫全局地址,是指合法的IP地址,它是由NIC(网... 阅读全文
posted @ 2016-01-06 15:40 小德cyj 阅读(38359) 评论(2) 推荐(3) 编辑