list of C++ STL containers

#include <iostream> #include<algorithm> #include <string> #include <list> using namespace std; //3.6.4.1 list constructor //List < T > lstt; / / list is implemented by using template class. The default construction form of the object is as follows: //list(beg, end); / / th ...

Posted by buceta on Sat, 25 Jan 2020 06:44:49 -0800

Geometric Shapes POJ - 3449 (Computational Geometry + line intersection + care)

Geometric Shapes POJ - 3449 Classification: carefulness + line intersection Extras: a tot has been written as 0, and I've been looking for bug s all morning. I want to kill myself carelessly and cry all the time. The problem is really not difficult! But the code is a little long! Be careful, do not copy and paste repeatedly, i ...

Posted by icedude on Thu, 02 Jan 2020 13:46:01 -0800

Simple use of mutimap in C + +

The basic usage of mutimap is the same as that of map. The key in the key value pair in map is unique, and the key in mutimap can be repeated. Mutimap is also very common in reality, such as the relationship between departments and employees. Both the header files of mutimap and map are related containers, which need to access t ...

Posted by dyconsulting on Tue, 31 Dec 2019 11:25:49 -0800

Mysql -- stored procedure

A stored Procedure is a set of SQL statements that are compiled and stored in a database to complete a specific function. The user can execute it by specifying the name of the stored Procedure and giving parameters. Stored procedures can contain logical control statements and data manipulation statements, which can accept para ...

Posted by storyteller on Tue, 31 Dec 2019 03:05:39 -0800

Callback Hell and ECMAScript6 Promise

Promise is the fifth day of "14nodejs (7 days)", but promise is not the content of Node.js, but the new API of ECMScript6 Callback Hell Callback region one asynchronous request needs another asynchronous request result $.ajax({url, success: function () { ... }}) $.ajax({url, success: function () { ... }}) $.ajax({url, success: functio ...

Posted by macdumbpling on Thu, 19 Dec 2019 22:51:46 -0800

MySql table partition (based on datetime)

timestamp type partition, please move = > MySql table partition (based on time timestamp)Environmental Science:MySQL 8.0.18 (unverified for 5.6 and 5.7)The field type of partition condition is datetimeThe complete sql operation table partition statement is as follows: -- 1.Delete table drop table t_test; -- ============================== ...

Posted by Brokenhope on Sun, 08 Dec 2019 03:47:37 -0800

2-python basic syntax

Basic grammar data type python is a weak data type language. When assigning a value, we do not need to declare the data type first, which is determined by the assigned value. There are several types: integer float Character string Boolean value Null value None Conditional statement age = 3 if age >= 18: pr ...

Posted by porco on Wed, 04 Dec 2019 23:15:01 -0800

MySQL associated query

Two tables Table A is A public curriculum with two fields, i.e. id and pro name. There are about five courses, and each of them should go to Table B is the association table of user and course reminders. It has four fields: ID, pro ID, user ID and tip time, which respectively represent ID, course ID, user ID and reminder class t ...

Posted by ReD_BeReT on Sun, 24 Nov 2019 11:09:53 -0800

2. Add two numbers

2. Add two numbers 1. Title Description 2. The code is as follows Original topic connection 1. Title Description Two non empty linked lists are given to represent two non negative integers. Their respective digits are stored in reverse order, and each node can only store one digit. If we add the two numbers together, we ...

Posted by ainoy31 on Tue, 12 Nov 2019 09:37:28 -0800

Spring Cloud: building Eureka

Setup of Eureka Server: Using IDEA tools File->New Project->Spring Initializr->next Next Create next - > next   Modify the startup class: package org.dreamtech.eureka; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.e ...

Posted by ciaran on Mon, 11 Nov 2019 07:21:31 -0800