- 博客(10)
- 问答 (1)
- 收藏
- 关注
原创 先进先出页面置换算法c语言源码
#include #define M 20 #define N 3 void FIFO(int a[N],int b[M]) {int i,j,k; int c[M]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
2017-11-25 21:45:48 7586 1
原创 格雷码源码~~
package action;import java.util.*;public class GrayCode {public static String[] grayCode(int n) {String[] array = new String[(int) Math.pow(2, n)];if (n == 1) {array[0] = "0";
2017-11-24 23:00:52 353
转载 棋盘覆盖java代码
public class QiPan { /** * =2^k。棋盘的规格为2^k*2^k * */ public static void ChessBoard(int tr, int tc, int dr, int dc, int size) { if (size
2017-11-23 21:07:52 879
原创 斐波那契递归100次要多长时间???
要是100次太久,50次也是可以的~~~#include #include long fib (int n) { return n}int main () { double x; x = clock() / CLOCKS_PER_SEC; fib(100); x = clock() / CLOCKS_PER_SEC - x;
2017-11-23 20:04:31 1214 1
原创 仿百度联想搜索框
Document*{margin: 0;padding: 0;}.title {display: block;margin: 100px auto 0px;width: 280px;height: 130px;}.show{width:625px;height: 35px;margin: 20px auto;position: relative;}#
2017-11-19 22:55:28 776
转载 解决org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryVal
今天使用JSTL,下载JSTL1.1.2后,引入项目, web.xml配置taglib时,报错,因为web.xml使用的是JSP2.4,所以在taglib外面加一个jsp-config标签解决此问题 重启服务器后,出现这个错误: org.apache.jasper.JasperException: Failed to load or instantiate TagLibraryVa
2017-11-17 23:06:55 4315
转载 纯CSS模态窗口实现炫酷动画效果(部分代码)
Modalbody,html{margin: 0;padding: 0;display: -ms-flexbox;display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;-ms-flex-direction: column;flex-direction: column;height: 100vh;width: 100v
2017-11-06 22:57:38 881
原创 纯CSS3文章卡片UI设计效果
A Article Effect*{margin: 0;padding: 0;}body{background: #eee;}.warp{margin: 50px auto 60px auto;width: 100%;display: flex;align-items: space-around;max-width: 1200px;}.tile{widt
2017-11-06 22:23:50 1509
原创 字符串的简单处理~~
首字母大写,字母和数字之间要用_连起来,多余的空格去掉 package code;import java.util.Scanner;import java.util.Vector;public class Demo1 {public static void main(String[] args) {Scanner in = new Scanner(Syste
2017-11-02 22:53:25 263
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人