摘要: 进行java开发,首先要安装jdk,安装了jdk后还要进行环境变量配置: 1、下载jdk(http://java.sun.com/javase/downloads/index.jsp),我下载的版本是:jdk-6u14-windows-i586.exe 2、安装jdk-6u14-windows-i5 阅读全文
posted @ 2017-02-01 17:57 kimsimple 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 #include "iostream" 2 #include "iomanip" 3 #include "cstdio" 4 using namespace std; 5 int main() 6 { 7 ///Type conversion and casts 类型的转换和强转 8 ///char>c;///默认cin忽略空白字符 25 ///需要从... 阅读全文
posted @ 2016-12-02 12:36 kimsimple 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 Function: ()()()()x()=()()()() 3 Developer: 4 Date: 5 6 */ 7 8 #include "iostream" 9 #include "cstdlib" 10 #include "string" 11 #include "cstdio" 12 #include "ctime" 13... 阅读全文
posted @ 2016-12-02 09:44 kimsimple 阅读(305) 评论(0) 推荐(0) 编辑
摘要: //数的全排列问题 //输入整数n 字典序输出1-n的全排列 #include "iostream" #include "cstdio" #include "cstring" using namespace std; int visit[9]; int ans[9]; int n; void dfs(int k) { if(k==n) { for(int i=... 阅读全文
posted @ 2016-09-10 11:53 kimsimple 阅读(345) 评论(0) 推荐(0) 编辑
摘要: #include "iostream" #include "cstdio" using namespace std; int dir[8][2]={{0,1},{0,-1},{1,0},{-1,0},{1,-1},{-1,1},{1,1},{-1,-1}}; int count,r,c; char map[100][100]; void dfs(int x,int y)//深搜函数,参数为坐标(... 阅读全文
posted @ 2016-09-10 11:29 kimsimple 阅读(226) 评论(0) 推荐(0) 编辑
摘要: ///大整数取模/**输入正整数n m输出n mod m n<=10^100 m<=10^9*/ 将大整数写成自左向右形式:1234=((1*10+2)*10+3)*10+4 阅读全文
posted @ 2016-08-17 10:47 kimsimple 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1 create table employee (name varchar(30), sex char(2), age int, address varchar(30)); 2 3 insert into employee values ('张三', '女', 19, '北京'); 4 insert 阅读全文
posted @ 2016-07-22 21:54 kimsimple 阅读(283) 评论(0) 推荐(0) 编辑
摘要: #Sql语句 创建一表格 create table user3(id int(11),name varchar(32),age int (3),sex char(1)); #添加语句 insert into user3(id ,name,age,sex)values(1,'张三',99,'男'); insert into user3 values(4,'王五',21,'男'); #删除 de... 阅读全文
posted @ 2016-07-22 20:48 kimsimple 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 1 //算法时间测试 基准法(定量分析) 大O法(定性分析) 2 //以下是基准法 3 #include "iostream" 4 #include "cstdio" 5 #include "ctime" 6 #include "windows.h" 7 using namespace std; 8 阅读全文
posted @ 2016-07-14 23:23 kimsimple 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 1 //HDU 1164 2 //输入一个数(1<x<=65535) 转化为素数的乘积() 3 4 #include "iostream" 5 #include "cstdio" 6 using namespace std; 7 8 int p[65535];//筛法求素数 9 10 void pr 阅读全文
posted @ 2016-07-14 16:40 kimsimple 阅读(144) 评论(0) 推荐(0) 编辑