- 博客(18)
- 收藏
- 关注
原创 IDEA 创建SpringBoot+Mybatis项目
之前入门了SSM框架,现在学习一下SpringBoot前置条件电脑 JAVA环境变量配置(安装JAVA),Maven环境变量配置(安装Maven),IDEA软件检测是否安装了 JAVA 和 Maven 的方法百度1.创建项目File->New->Project->Spring InitializrNext2.项目创建完成,设置maven这个地方路径设置有时很麻烦,可能不会一次成功3.重新加载Maven这个过程会自动下载依赖,有可.
2020-11-09 22:25:45 607
原创 IDEA 项目创建Mapper的xml文件
1.打开设置2.搜索 File and Code Templates,进行如下操作。。模板代码附上<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" ><mapper namespace=""><!--
2020-11-09 21:51:08 1480
原创 css实例整理-练习大全
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> </head> <style> body { /*1. 设置页面的背景颜色 */ /* background-color: #55ffff; */ /*2. 设置一个图像作为页面的背景 */ /* background-image: u
2020-10-25 10:09:21 988
原创 sql语句
SET NAMES utf8mb4;SET FOREIGN_KEY_CHECKS = 0;DROP TABLE IF EXISTS `websites`;CREATE TABLE `websites` ( `id` int(0) NOT NULL AUTO_INCREMENT, `name` char(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '站点名称', `url` varch
2020-10-15 10:04:44 68
原创 蓝墨云班课网页版下载资源文件
进入资源界面,按F12,在Elements那一栏按Ctrl+F出来搜索框,输入data-herf,搜到的下面会有一个链接,分别对应每个文件,鼠标放在上面文件会变色,找到想下载的文件链接,选中,复制,粘贴到浏览器即可下载。...
2020-06-04 10:25:08 6877 8
原创 Dijkstra普通模板+堆优化模板(优先级队列)
Dijikstra是最短路算法,普通的方法时间复杂度是O(n^2),用堆优化后是O(n*log(n))或者O(E*log(E))。//普通方法----时间复杂度O(n^2)bool vis[man];ll pre[man];void Dijkstra(ll cost[][man],ll lowcost[],int n,int beg){ for(int i=0;i<n;i+...
2019-04-15 18:53:23 786
原创 QT Creator通过写好的代码生成可以在不同电脑上运行的程序文件
此方法适用于windows系统。linux系列的系统没有尝试过,可以试一下。前提条件:1.写好的qt程序项目,并且可以完美运行。2.qt软件。3.Windows系统4.代码里没有固定的绝对路径,比如“C:\Users\admin\Desktop”,这是我的电脑上的桌面的路径(以前以为所有windows系统的桌面路径都是一样的,后来发现我错了,上面的那个是我曾经犯过的错误)。操作...
2019-03-26 20:48:27 1091 1
原创 字符串与整型、浮点数之间的相互转换(atoi() atof())整理
#define ll long long #include <iostream>#include <cstdlib>#include <string.h>#include <math.h>using namespace std;int main() { //atoi函数可以将char数组转化为int型变量,传参char*,返回int...
2019-03-17 13:38:23 595
原创 Codeforces 879B Table Tennis
Table Tennistime limit per test 2 secondsmemory limit per test 256 megabytesnpeople are standing in a line to play table tennis. At first, the first two players in the line play a game. Then...
2019-03-15 12:41:21 214
原创 CodeForce 721C Journey
Journeytime limit per test 2 secondsmemory limit per test256 megabytesThere arencities andn - 1roads in the Seven Kingdoms, each road connects two cities and we can reach any city from an...
2019-03-15 12:26:29 226
原创 CodeForces 954D Fight Against Traffic (最短路)
Fight Against Traffictime limit per test 1 secondmemory limit per test 256 megabytesLittle town Nsk consists ofnjunctions connected bymbidirectional roads. Each road connects two distinct j...
2019-03-07 14:17:40 290
原创 Codeforces 1105C Ayoub and Lost Array
Ayoub and Lost Arraytime limit per test 1 secondmemory limit per test 256 megabytesAyoub had an arrayaaof integers of sizennand this array had two interesting properties:All the integers ...
2019-03-07 14:02:14 315
原创 Codeforces Round #523 (Div. 2) C Multiplicity (DP+动态数组)
Multiplicitytime limit per test 3 secondsmemory limit per test256 megabytesYou are given an integer arraya1,a2,…,ana1,a2,…,an.The arraybbis called to be asubsequenceofaaif it is pos...
2019-03-07 13:39:42 190
原创 数据结构课程设计---文件目录结构显示(c++版)
文件目录结构显示【问题描述】要求在给出Unix或windows下目录和文件信息的前提下,编程实现将其排列成一棵具有一定缩进的树。【基本要求】在给定的磁盘目录下,参照下表分层缩进输出文件目录结构|_*/usr |_*mark | |_hw.c | |_*course ...
2018-12-28 16:16:31 3103 2
原创 数据结构之二叉树的应用(先序、中序、后序遍历,查找结点数、叶子结点数、宽度等)
代码实现:#include<iostream>#include<string.h>#include<stdio.h>#include<stdlib.h>using namespace std;#define maxxize 100typedef struct node{ char data; node *lch...
2018-11-27 15:24:44 855
原创 数据结构课本第六章实验题3:求n*n阶螺旋方阵
目的:掌握数组算法设计。内容:以下是一个5*5阶螺旋方阵,编写一个程序exp6-3.cpp输出该形式的n*n(n<10)阶方阵(按照顺时针方向旋进)。 1 2 3 4 516 17 18 19 615 24 25 20 714 23 22 21 813 12 11 10 9#include<stdio.h>#include&...
2018-11-20 09:08:20 2141
原创 ip地址还原(数据结构课本第五章实验三)
目的:掌握基本递归算法设计内容:编写程序exp5-3.cpp,恢复IP地址。给定一个仅仅包含数字的字符串,恢复它的所有可能的有效IP地址。例如,给定字符串为“22522511135”,返回“225.225.11.135”和“225.225.111.35”(顺序可以任意)。#include<iostream>#include <string.h>#include...
2018-11-19 13:49:32 1776
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人