自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 威胁分析-STRIDE方法论

威胁分析-STRIDE方法论

2022-12-21 09:48:02 425 1

原创 应用软件安全相关术语

名词解释

2022-09-16 15:45:46 225

原创 IDS入侵检测Checklist

关于IDS的完整检查表

2022-09-13 16:37:54 315

原创 应用程序安全设计清单

OWASP应用程序安全设计

2022-09-13 10:46:18 771

原创 Spring Boot + Mybatis 实现简单的实验室预约微信小程序

本微信小程序主要由Mysql,Eclipse和微信开发者工具共同完成,其主要功能有分角色登录,新闻页浏览及推送,实验室条件筛选查询,实验室预约,查看历史预约记录或取消当前预约以及个人信息修改和教师用户管理实验室功能等1.数据库根据上述功能我们大致可以建立以下数据库表如图这里详细列出lab表,news表和students表,record表中的字段lab表news表students表records表这里我所使用的数据库可视化组件为phpMyAdmin,...

2022-05-05 13:06:04 1725 2

原创 C++循环链表的小练习

循环单链表:#ifndef CSLTest_hpp#define CSLTest_hpp#include <stdio.h>#include <iostream>using namespace std;typedef struct CSLNode{ int data; struct CSLNode *next;}CSLNode,*CSLink;void Creat_CSLink(CSLink &L);void Print_CSLink(

2021-11-26 17:05:31 579

原创 C++单链表的一些小练习

#include <stdio.h>#include <iostream>using namespace std;typedef struct LNode{ int data; struct LNode *next;}LNode,*SingleLinklist;//递归函数 删除单链表中所有值为x的节点void Del_X(SingleLinklist &L,int x);//函数能使单链表从尾到头反向输出void R_Printf(Sing.

2021-11-26 17:01:04 247

原创 C++双链表简单操作

using namespace std;typedef struct DNode{ int data; struct DNode* prior,*next;}DNode,*DLinklist;//建立双链表void BuildDLinklist(DLinklist &L){ L =(DLinklist)malloc(sizeof(DNode)); L->next=NULL; L->prior=NULL; DNode *p = L;.

2021-11-23 21:36:52 521

原创 C++单链表简单操作

#include <iostream>#include <stdio.h>using namespace std;typedef struct LNode{ int data; struct LNode* next;}LNode,*Linklist;// 头插法建立单链表void HeadInsert(Linklist &L){ int x; L = (Linklist)malloc(sizeof(LNode)); //申请头节点.

2021-11-23 20:14:39 680

原创 C++顺序表寻找主元素和寻找表中未出现最小正整数

1.寻找主元素//首先寻找出数组中可能成为主元素的数值,即一个数连续出现且连续的次数最多的的数,然后再遍历表中看该数出现次数是否大于表长/2,大于则为,反之不存在int getMajorElement(SeqList L){ int p,count,k; p = L.data[0]; count = 1; k=0; for (int i = 1; i<L.length; i++) { if (L.data[i] == p) {

2021-11-23 11:09:37 865

原创 C++顺序表的循环左移算法和求两个升序表的合并中位数

1.循环左移(输入的参数不超过表本身长度)如需实现超过表长的循环左移需对输入参数进行处理,若超过表长则实际左移p%L.lengthvoid ROL(SeqList &L,int p){ if (p<0 || p>L.length) { cout<<"输入左移数据不规范!"<<endl; return; } else{ SeqList K; K.data = new i

2021-11-23 09:57:12 594

原创 C++顺序表的简单操作,冒泡排序,合并有序顺序表

主要函数:#include <iostream>#define MaxSize 50using namespace std;typedef struct dongtaishunxuList{ int *data=0; int length=0;}SeqList;//顺序表的插入bool ListInsert(SeqList &L,int i,int x){ if (i<1 || i>L.length+1) { cout

2021-11-22 16:18:06 597

原创 Web开发—简单的点餐管理系统

本系统由bootstrap,eclipse和Mysql共同开发完成。其主要功能根据角色大致可分为基于用户的登录注册,浏览菜品,添加修改购物车,查看以下单的订单信息,留言评论并查看所有人评论,查看并修改个人信息及密码等基于管理员的有添加和修改菜品,查看所有用户订单信息,查看并管理所有用户的评论,查看所用用户信息,管理个人管理员信息等1.数据库作为一个点餐管理系统,大致建表如图列数据这里贴出用户表的和购物车表的用户表购物车表2.前端前端重要运用bootstr...

2021-11-17 11:46:28 5576 11

原创 C++继承多态的小例子

几何类(父类)#ifndef GeometricObject_hpp#define GeometricObject_hpp#include <stdio.h>#include <string>using namespace::std;class GeometricObject{protected: GeometricObject(); GeometricObject(const string& color,bool filled);pub

2021-10-31 09:03:59 347

原创 C++对运算符进行重载以有理数计算为例

#ifndef Rational_hpp#define Rational_hpp#include <stdio.h>#include <string>#include <iostream>using namespace::std;class Rational{public: Rational(); Rational(int numerator,int denominator); int getNumerator()const; .

2021-10-29 20:53:05 273

原创 C++对有理数进行表达并计算

#ifndef Rational_hpp#define Rational_hpp#include <stdio.h>#include <string>using namespace std;class Radtional{public: Radtional(); Radtional(int numerator,int denominator); int getNumerator()const; int getDemominator()c.

2021-10-29 15:35:33 304

原创 C++对表达式进行求值计算

1.首先我们需要成立两个栈,一个用来存放操作数(intStack),一个用来存放运算符(charStack)2.对输入的表达式进行扫描如果抽取的操作数,则压入intStack中如果抽取的是'+'或者’-‘运算符,则处理charStack栈顶相等或更高优先级的运算符,然后将运算符压入charStack中如果抽取到的是'*'或者'/'运算符,则处理charStack栈顶相等的优先级的运算符,然后将运算符压入栈中如果抽到的是'(',则直接压入栈中如果抽到的是')',则重复处理charSta

2021-10-28 20:01:24 1768

原创 C++从52张牌中随机抽取n张

#include <iostream>#include <vector>#include <string>#include <ctime>using namespace::std;const int NUMBER_OF_CARDS = 52;string suits[4]={"红桃","黑桃","梅花","方片"};string numbers[13]={"A","2","3","4","5","6","7","8","9","10","J".

2021-10-28 11:24:56 486

原创 C++ 字符串替代

#include <iostream>#include <string>using namespace::std;bool replace(string& s,string& oldstring,string& newstring){ bool isReplace = false; int currentPosition = 0; while (currentPosition<s.length()) { i.

2021-10-26 14:13:08 247

原创 C++求最大公约数,检查回文,输出素数

#include <iostream>using namespace std;int main(int argc, const char * argv[]) { int number1; int number2; cout<<"第一个数"<<endl; cin>>number1; cout<<"第二个数"<<endl; cin>>number.

2021-10-26 12:24:05 109

原创 C++多道减法测试简单代码

#include <iostream>#include <ctime>#include <cstdlib>using namespace::std;int main(int argc, const char * argv[]) { // insert code here... long starttime = time(0); srand(time(0)); const int TEST_NUMBER = 5; .

2021-10-26 12:19:58 278

原创 C++简单猜数字小代码

#include <iostream>#include <ctime>#include <cstdlib>using namespace::std;int main(){ srand(time(0)); int number = rand() % 101; int count = 1; int guess; cout<<"在0-100之间猜一个数字:"<<endl; cin>>.

2021-10-26 12:16:18 703

原创 简单的文件加密上传下载系统(含登陆注册界面)

学校作业让写一个简单的web论文提交系统。想系统的弥补之前对数据库,前端页面的一些不足。心血来潮,写篇博客,当做笔记。先zhan chu

2021-06-07 17:20:31 1100 1

空空如也

空空如也

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

TA关注的人

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