自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

转载 缺少wlanapi.dll文件问题修复

我在下载百度云盘的时候碰到了一个问题,缺少wlanapi.dll文件。下面贴出解决办法第一步http://d.apktop.cn/p/soft_134.html 下载wlanapi.dll第二步(如果第一步还是不行就执行第二步)http://zhuanjia.baidu.com/detail?pid=1154&src=1&dll_id=1...

2016-12-20 16:27:00 2140

转载 java 简单数组元素的增删改查

public class Test {static int[] a = new int[20];static int n;public static void main(String[] args) {int choose;Scanner sc = new Scanner(System.in); System.out.println("请输入初始时存放元素的个数");...

2016-04-08 17:43:00 390

转载 有多少个“1”呢

问题:请问下面这个长达1000位的整数中有多少个“1”呢?592387324325702348703298409327430752483248329048488392675208342917439270578032409381143284302507284828941114732986589237432149328956827432987492124738473200843298...

2016-01-29 11:25:00 122

转载 四胞胎素数

/*问题:四胞胎素数是指一组大于3且满足{p, p+2, p+6, p+8}的四个连续素数。头几组四胞胎素数如下{5, 7, 11, 13}, {11, 13, 17, 19}, {101, 103, 107, 109}, {191, 193, 197, 199}, {821, 823, 827, 829}。请问1000000以内有多少组四胞胎素数?*/public cla...

2016-01-27 22:48:00 793

转载 递归二:求老鼠生孩子问题

有一对老鼠,它每一个月产一对小老鼠,小老鼠在3个月后成年,又将生产小老鼠。 问3年后,总共会有多少只老鼠,不计老鼠死亡 第1个月后情况: 有成年鼠:1对 新生的老鼠:1对 有一个月大的老鼠:0对 二个月大的老鼠:0对 第1月后共有老鼠:2对第2个月后情况: 有成年鼠:1对 ...

2016-01-26 20:49:00 322

转载 递归一:求出第五个人年龄

题目要求:5个人坐在一起,问第五个人多少岁?他说比第4个人大2岁。问第4个人岁数,他说比第3个人大2岁。问第三个人,又说比第2人大两岁。问第2个人,说比第一个人大两岁。最后问第一个人,他说是10岁。请问第五个人多大?分析:这个题中我们可以得出,我们要知道第五个人的年龄,就必须要知道第四个人的年龄,要知道第四个人的年龄,那么我们必须要知道第三个人的年龄。反之,当我们知道第一个人的年...

2016-01-26 20:14:00 770

转载 java 平面上最近两个点之间的距离

public class ClosestPair{ public static void main(String[] args) { float[][] a = new float[][]{{3, 3}, {1, 5}, {4, 6}, {2, 8}, {9, 9},{2, 1}, {7, 2}, {6, 5}, {9, 4}, {5, 9}}; float d = (float...

2016-01-02 21:41:00 262

转载 java 选择排序

import java.util.Scanner;public class SelectionSort { public static void sort(int[] a, int n){ if(n<=1) return; for(int i=0; i<n-1; i++){ for(int j=i+1; j<n; j++){ if(a[i]>a[...

2016-01-02 19:09:00 65

转载 java 复制字串算法

public class Copy { public static void copy(char[] s, char[] t){ int i=0; for(i=0; i<s.length; i++){ t[i]=s[i]; } t[i] = '\0'; } public static void main(String[] args) { char[] s...

2016-01-02 18:46:00 100

转载 mysql数据库的导入导出

当我们在操作数据库的时候,难免会遇到数据导入导出的一些操作,今天突然学到了这个知识点,特意来给大家分享。我用的是data的这条数据1.使用数据mysql> use data;Database changed2.显示数据库的表名mysql> show tables;+----------------+| Tables_in_data |+...

2015-12-11 11:35:00 103

转载 bootstrap之消息提示

<!DOCTYPE html><html> <head> <title>Bootstrap</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" charset="UTF-8" > &lt...

2015-12-01 10:39:00 203

转载 jQuery水平下拉菜单实现

<!DOCTYPE html><html> <head> <title>jQuery水平下拉菜单实现</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" charset="UTF-8" &gt...

2015-11-27 13:45:00 138

转载 JavaScript的Date对象

整理了一些JavaScript时间的对象,如下所示:toLocaleString()得到当前的年月日和时间的字符串toLocaleTimeString() 得到当前的时间字符串toLocaleDateString() 得到当前的年月日字符串setTime() 设置当前时间 getTime() 得到当前时间setFullYear(year,month,day)...

2015-11-26 15:15:00 70

转载 积水问题

/*** Lake Counting** 有一个大小为N*M的园子,雨后积起了水。八连通的积水被认为是连在一起的。请求出院子里共有多少水洼?** 算法来源:《挑战程序设计大赛》*/#include <stdlib.h>#include <stdio.h>const int MAX_N = 50;const int MAX_M...

2015-11-25 20:45:00 263

转载 Queue的push和front操作

#include <queue>#include <cstdlib>using namespace std;int main(){ queue<int> que; que.push(1); que.push(2); que.push(3); printf("%d\n", que.front()); que...

2015-11-24 23:29:00 2496

转载 Stack的pop和push操作

#include <stack>#include <cstdio>using namespace std;int main(){ stack<int> s; s.push(1); s.push(2); s.push(3); printf("%d\n", s.top()); s.pop(); printf(...

2015-11-24 23:16:00 1204

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除