自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

CasT1R's Blog

SWUST OJ

  • 博客(95)
  • 收藏
  • 关注

转载 HTML精确定位:scrollLeft,scrollWidth,clientWidth,offsetWidth之完全详解

HTML:scrollLeft,scrollWidth,clientWidth,offsetWidth到底指的哪到哪的距离之完全详解 scrollHeight: 获取对象的滚动高度。 scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离scrollWidth:获取对象的滚动宽度...

2018-11-05 13:44:20 249

原创 JavaScript--DOM基本操作

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><body> <div&gt

2018-10-27 20:59:10 174

转载 HTTP协议中GET和POST两种基本请求方法的区别

GET和POST两种基本请求方法的区别GET和POST是HTTP请求的两种基本方法,要说它们的区别,接触过WEB开发的人都能说出一二。 最直观的区别就是GET把参数包含在URL中,POST通过request body传递参数。 你可能自己写过无数个GET和POST请求,或者已经看过很多权威网站总结出的他们的区别,你非常清楚知道什么时候该用什么。 当你在面试中被问到这个问...

2018-10-17 13:28:31 1061 1

转载 30 Great Interactive Sites -- 特效标杆

http://webdesignerwall.com/trends/30-great-interactive-sites

2018-10-14 21:49:22 151

原创 炫酷的Sublime Text插件+使用快捷键

SublimeText 是一个具有漂亮的用户界面和强大功能的跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统,深受广大程序员喜爱!没有下载的小伙伴可以到这个地址下载 https://www.sublimetext.com/3推荐一 Emmet代码快速编辑神器 视频演示地址http://docs.emmet.io/只需要简单的输入一行代码,就可以快速生成...

2018-10-10 17:26:03 320

原创 js预编译原理

<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>js预编译原理</title></head><body><script type="text/javascrip

2018-09-25 17:54:17 168

原创 分组加密的四种加密模式(ECB、CBC、CFB、OFB)

加密一般分为对称加密和非对称加密。对称加密又分为分组加密和序列密码。分组密码,也叫块加密(block cyphers),一次加密明文中的一个块。是将明文按一定的位长分组,明文组经过加密运算得到密文组,密文组经过解密运算(加密运算的逆运算),还原成明文组。序列密码,也叫流加密(stream cyphers),一次加密明文中的一个位。是指利用少量的密钥(制乱元素)通过某种复杂的运算(密码算法)产生大量...

2018-09-14 12:31:07 9352

原创 CSS对box-sizing属性理解

正常盒模型IE盒模型:一般较多出现在大部分浏览器中正常盒模型:又叫w3c盒模型。即块状元素box-sizing属性为content-box的盒模型。w3c盒模型是指:盒模型的大小包括content,padding,border,并且先做content,由内向外扩展。w3c盒模型的大小会以内容优先自动扩展,内部子元素超过父元素给定的大小,会将父元素撑大。IE盒模型IE盒模型:一般较多...

2018-09-08 10:27:15 284

原创 H5+CSS--雨滴特效

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Rain</title> <style> body,html{marg

2018-09-05 17:04:45 1862

原创 HTML5特殊符号编号(使用前请加&#)

各种箭头⇠ 8672 21E0 ⇢ 8674 21E2 ⇡ 8673 21E1 ⇣ 8675 21E3 ↞ 8606 219E ↠ 8608 21A0 ↟ 8607 219F ↡ 8609 21A1 ← 8592 2190 → 8594 2192 ↑ 8593 2191 ↓ 8595 2193 ↔ 8596 2194 ↕ 8597 2195 ⇄ 8644 21C4...

2018-09-01 17:35:55 8869

原创 Display状态转换效果演示

<!doctype html><html><head><meta charset="utf-8"><title>Display演示</title><style>div { width: 600px;}div a { width: 99px; height: 38px;

2018-09-01 14:45:27 434

原创 DreamWeaver快捷键大全

新建一个网页 Ctrl + N 打开一个存在的网页 Ctrl + O 在框架中打开 Ctrl + Shift + O 关闭当前网页 Ctrl + W 保存当前网页 Ctrl + S 将当前网页换名存盘Ctrl + Shift + S 检查联接的有效性 Shift + F8 撤消上一步操作 Ctrl + Z/Alt + BackSpace 重复上一步操作 Ctrl +...

2018-09-01 13:54:44 1072

原创 CSS盒子边框样式选择

值 说明 dotted 点状虚线 dashed 短横状虚线 solid 实线 double 双线(边框宽度3px起步) groove 3D凹槽边框(边框宽度3px起步) ridge 3D凸槽边框(边框宽度3px起步) outset 3D凸起边框(边框宽度3px起步) inset 3...

2018-08-30 17:47:39 1358

原创 SWUST数据结构--希尔排序算法实现

#include<iostream>using namespace std;int main(){ int i,n; int a[50]; cin>>n; for(i=0;i<n;i++) cin>>a[i]; for(i=0;i<n/2;i++) { int tmp; tmp = a[i]; a[i] = a[...

2018-08-28 10:27:41 312

转载 SWUST数据结构--哈夫曼译码

const int maxvalue=100;const int maxbit=100;const int maxn=100;#include "iostream"#include "stdio.h"#include "stdlib.h"using namespace std;struct haffnode{ char ch; int weight; int flag; ...

2018-08-28 10:24:53 497

原创 SWUST--Java实验(八) 网络编程

import java.awt.BorderLayout;import java.awt.EventQueue;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.border.EmptyBorder;import javax.swing.JLabel;import java.awt.Fon...

2018-08-28 10:21:45 894

原创 SWUST--Java实验(七) 客户端与服务器聊天实现

import java.awt.BorderLayout;import java.awt.EventQueue;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.border.EmptyBorder;import javax.swing.JScrollPane;import javax.s...

2018-08-28 10:20:00 480

原创 数据库Oracle安装教程及测试办法

1.先到Oracle官网下载Oracle12c(博主下的此版本)http://www.oracle.com/technetwork/cn/database/enterprise-edition/downloads/index.html2.下载完成后解压zip文件得到如图文件夹,点击setup安装过程具体可以见其他相关文章,这里博主由于装过就不再演示了。3.此乃我安装过程遇到的问...

2018-08-27 20:34:03 198

原创 SWUST--Java实验(六) 线程

public class CaThread implements Runnable { static double sum = 1; static String str = "1!"; static int n = 1; Thread thread;//线程类对象 public CaThread() { thread = new Thread(this);//调用本类对象 t...

2018-07-07 16:13:33 525

原创 SWUST数据结构--有向图的邻接矩阵存储根计算

#include<iostream>#include<cstring>using namespace std;int n;int map[50][50];int v[50];void ser(int x){ v[x] = 1; for(int i=0;i<n;i++) if(map[x][i]!=0 && v[i]==0) se...

2018-06-25 11:30:42 627

原创 SWUST数据结构--有向图的邻接矩阵存储顶点删除

#include<iostream>using namespace std;int main(){ int n,del,i,j; int a[50][50]; cin>>n>>del; for(i=0;i<n;i++) for(j=0;j<n;j++) cin>>a[i][j]; //删列 for(i=0;...

2018-06-25 11:30:15 1416

原创 SWUST数据结构--图的深度优先搜索

#include<iostream> using namespace std; int n;char str[100];int map[100][100]; int flag[100]; void ser(int x) { cout<<str[x]; flag[x]=1; for(int i=0;i<n;i+...

2018-06-25 11:29:42 112

原创 SWUST数据结构--图的广度优先搜索

#include<iostream>using namespace std;int n;char str[100];int map[100][100];int flag[100];int tou = 0,wei = 0;int dui[100];void ser(int x){ dui[wei] = x; wei++; cout<<str[x];...

2018-06-25 11:29:08 250

原创 SWUST数据结构--求最小生成树(Prim算法)

#include<iostream>#include<cstring>using namespace std;int n,e;char map[50][50];char str[50];void Prim(){ int i,j,k; int a[50],b[50]; int min; for(i=0;i<n;i++) { a[i] = ...

2018-06-25 11:28:32 288

原创 SWUST数据结构--判断给定有向图是否存在回路

#include<iostream>#include<cstring>using namespace std;int map[50][50];bool v[50],k;int n,m,i,j;void Init(){ for(i=0;i<n;i++) for(j=0;j<n;j++) map[i][j] = 0;} void...

2018-06-25 11:27:59 805

原创 SWUST数据结构--堆排序算法

#include<iostream>#include<cstdlib>using namespace std;int n;void dui(int i,int a[]) { int j=i*2; int item=a[i]; while(j<=n) { if(j<n &&a...

2018-06-25 11:27:06 305

原创 SWUST数据结构--无向图的连通分量计算

#include<iostream>using namespace std;int a[50][50],verxnum;int flag[50]={0};void dfs(int x,int y){ int i; for(i=0;i<verxnum;i++) { if(flag[i]==0 && a[y][i]>0) ...

2018-06-25 11:26:18 549

原创 SWUST数据结构--有向图的邻接表存储强连通判断

#include<iostream>using namespace std;int main(){ int verxnum,arcnum; int verxs[50][50],arcs[50][50]; int i,j; cin>>verxnum>>arcnum; for(i=0;i<arcnum;i++) for(j=0;j<...

2018-06-25 11:25:32 485

原创 SWUST数据结构--哈希表(链地址)

#include<iostream>using namespace std;struct node { int data[100]; int top;};int main(){ node a[100]; int n,m,i,tmp,wait; cin>>n>>m; for(i=0;i<n;i++) a[i].top = -1;...

2018-06-25 11:24:38 144

原创 SWUST数据结构--哈希表(链地址)

#include<iostream>using namespace std;struct node { int data[100]; int top;};int main(){ node a[100]; int n,m,i,tmp,wait; cin>>n>>m; for(i=0;i<n;i++) a[i].top = -1;...

2018-06-15 13:52:59 125

原创 SWUST数据结构--堆排序算法

#include<iostream>#include<cstdlib>using namespace std;int n;void dui(int i,int a[]) { int j=i*2; int item=a[i]; while(j<=n) { if(j<n &&a...

2018-05-19 22:27:23 236

原创 SWUST数据结构--有向图的k出度计算

#include<iostream>using namespace std;int count = 0;typedef struct { int verx1[50]; int verx2[50];}MGraph;int verxnum; int arcnum; void Creat(MGraph *G){ int i; cin>>verxnu...

2018-05-19 22:26:38 387

原创 SWUST数据结构--带权无向图存储判定[数组]

#include<iostream>using namespace std;int verxnum;int main(){ int i,j,a[50][50]; int flag = 1; cin>>verxnum; for(i=0;i<verxnum;i++) for(j=0;j<verxnum;j++) cin>>a[i...

2018-05-19 22:26:10 380

原创 SWUST数据结构--有向图的邻接表存储强连通判断

#include<iostream>using namespace std;int main(){ int verxnum,arcnum; int verxs[50][50],arcs[50][50]; int i,j; cin>>verxnum>>arcnum; for(i=0;i<arcnum;i++) for(j=0;j<...

2018-05-19 22:25:30 905

原创 SWUST数据结构--邻接表到邻接矩阵[数组]

#include<iostream>#include<stdio.h>using namespace std;int main(){ int verxnum; int i,j; int arcs[50][50]; cin>>verxnum; getchar(); for(i=0;i<verxnum;i++) for(j=0;j&l...

2018-05-19 22:25:00 236

原创 SWUST数据结构--交换二叉树的孩子节点

#include<iostream>#include<cstdlib>using namespace std;typedef struct node{ char data; struct node *l,*r;}Tree;void Init(Tree *&T){ char str; cin>>str; if(str!='#')...

2018-05-19 22:24:10 377

原创 SWUST--Java实验(四) 计算器

package Demo3;import java.awt.BorderLayout;import java.awt.EventQueue;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.border.EmptyBorder;import javax.swing.JTextField;i...

2018-05-06 15:18:16 584

原创 SWUST数据结构--二叉树的实现和查找

#include<iostream>#include<cstdlib>using namespace std;int count =0 ,flag=0;typedef struct node{ int data; struct node *l,*r;}Tree;void Head(Tree *&T){ T=(Tree *)malloc(si...

2018-05-06 15:15:29 200

原创 SWUST数据结构--输出利用二叉树存储的普通树的度

#include<iostream>#include<cstdlib>using namespace std;int M = 0;typedef struct node{ char data; struct node *l,*r;}Tree;void Init(Tree *&T){ char str; cin>>str; i...

2018-05-06 15:14:50 462

原创 SWUST数据结构--中序及先序遍历确定该二叉树的后序序列

#include<iostream> #include<cstdlib> #include<cstring> using namespace std; typedef struct node { char data; struct node *l,*r; }Tree; void Init(Tree *&a...

2018-05-06 15:14:01 181

空空如也

空空如也

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

TA关注的人

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