自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 请求响应 面试题

1.HTTP协议1)定义:定义浏览器和服务器之间交互数据的过程以及数据的格式。2)特点:简单快捷:通过路径和请求方式两种方法。灵活:数据类型可以是任意的(网页、音频、视频、图片等)无状态:服务器不会记录请求状态(服务器没有记忆能力)3)HTTP有8种请求方式:post:向指定资源提交数据进行处理请求(例如提交表单或者上传文件)。数据被包含在实体主体中。get:向服务器请求资源,服...

2019-03-31 13:25:15 236

原创 页面跳转的两种方式(转发和重定向)区别

在java web开发的程序员,在使用servlet/jsp的时候,我们必须要知道实现页面跳转的两种方式的区别和联系:即转发和重定向的区别。1.转发:RequestDispatcher.forward方法 重定向:HttpServletResponse.sendRedirect2.RequestDispatcher.forward方法只能将请求转发给同一个WEB应用中的组件;而Ht...

2019-03-25 09:56:18 2714

原创 Hanoi双塔问题

题目描述:给定A,B,C三根足够长的细柱,在A柱上放有2n个中间有孔的圆盘,共有n个不同的尺寸,每个尺寸都有两个相同的圆盘,注意这两个圆盘是不加区分的(下图为n=3的情形)。现要将这些国盘移到C柱上,在移动过程中可放在B柱上暂存(1)每次只能移动一个圆盘;(2) A、B、C三根细柱上的圆盘都要保持上小下大的顺序;任务:设An为2n个圆盘完成上述任务所需的最少移动次数,对于输入...

2019-03-25 09:21:53 3058

原创 JDBC总结

useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true1.useUnicode=true2.characterEncoding=UTF83.serverTimezone=GMT%2B8...

2019-03-21 15:02:30 103

原创 JAVA实现“简易计算器”

//package work;import java.awt.BorderLayout;import java.awt.Container;import java.awt.Font;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;im...

2018-12-23 19:58:51 837

原创 《数据结构》串基本操作与实现

#include"stdio.h"#include"stdlib.h"#include"String.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define OVERFLOW -2#define Maxstrlen 225typedef unsigned char SString[Maxstrlen...

2018-12-03 22:08:38 642

原创 《数据结构》链队列基本操作与实现

#include "stdio.h"#include "stdlib.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define OVERFLOW -1typedef int QElemType;typedef int Status;typedef struct QNode{ QElemType...

2018-12-03 22:06:37 573

原创 《数据结构》循环队列基本操作与实现

#include "stdio.h"#include "stdlib.h"#define TRUE 1#define ERROR 0#define OK 1#define FALSE 0#define OVERFLOW -1typedef int QElemType;typedef int Status;#define MAXQSIZE 100typedef struct...

2018-12-03 22:05:16 401

原创 《数据结构》链栈基本操作与实现

#define OK 1#define ERROR 0#define FALSE 0#define TRUE 1#define OVERFLOW -1#define LIST_INIT_SIZE 100#define LISTINCREMENT 10typedef int Status;typedef int SElemType;typedef struct Node{...

2018-12-03 22:03:14 491

原创 《数据结构》顺序表基本操作实现

# include "stdio.h"# include "stdlib.h"#define OK 1#define ERROR 0#define TRUE 1#define FALSE 0#define OVERFLOW -1#define LIST_INIT_SIZE 100#define LISTINCREMENT 10typedef int Status;typ...

2018-12-03 22:01:17 257

原创 《数据结构》单链表基本操作实现

#define ok 1#define error -1typedef int ElemType;typedef int Status;typedef struct Node{ ElemType data; struct Node *next;}LNode,* LinkList;//构造空表Status InitList(LinkList *L){ *L=(Link...

2018-12-03 21:58:52 217

原创 C++ Primer Plus 习题答案 第三章

//3.7.1 1英尺=12英寸 # include <iostream>using namespace std;int main(){ const int change= 12; int ft; int inch; cout << "Please enter your height in ft: "; cin>> ft; inch=c...

2018-07-22 17:38:46 352

原创 C++ Primer Plus 习题答案 第二章

//2.7.1 # include <iostream>int main(){ using namespace std; cout << "Xingming"<<endl; cout <<"address"<<endl; return 0; } //2.7.2# include <iostre

2018-07-18 20:18:13 183

原创 学生成绩管理系统

# include <stdio.h># include <stdlib.h># include <string.h>struct Student{ int num;//学号 char name[20];//姓名 float score[3];//三门课成绩 float aver;//平均成绩};///////////////////////...

2018-07-03 22:50:51 314

原创 《C Primer Plus》第四章

【4.8.1】# include <stdio.h>int main(){ char last_name[20]; char first_name[20]; printf("Please enter your first_name:\n"); scanf("%s",first_name); printf("Please enter your last_name:\n")...

2018-02-14 12:01:29 182

空空如也

空空如也

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

TA关注的人

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