示例代码: #include <map>#include <iostream>#include <string>#include <algorithm> using namespace std;int main(){ string name="jack"; pair<int,string> pair ...
分类:
其他好文 时间:
2020-07-21 11:34:26
阅读次数:
67
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; using System.Net;using System.Net.Sock ...
使用SqlConnection连接到SQL Server2019 且返回表的行数。 1、界面设计 2、代码设计 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using Sys ...
分类:
数据库 时间:
2020-07-20 15:20:43
阅读次数:
122
题目 传送门 思路 比较巧妙的一道构造题 首先考虑排列的情况 因为是排列,所以每一个数位上的最终状态一定是固定的 设$b_i$满足$a_=i$ 如果交换$a_,a_$,那么$b_i,b_j$一定也会被交换 再者,如果$a$有序,那么$b$一定也有序,反之亦然 考虑逆序对映射到$b$上会是什么情况 \ ...
分类:
其他好文 时间:
2020-07-20 13:23:21
阅读次数:
66
类视图 在写视图的时候,Django除了使用函数作为视图,也可以使用类作为视图。使用类视图可以使用类的一些特性,比如继承等。 View: django.views.generic.base.View是主要的类视图,所有的类视图都是继承自他。如果我们写自己的类视图,也可以继承自他。然后再根据当前请求的 ...
分类:
其他好文 时间:
2020-07-20 13:18:19
阅读次数:
62
授权过滤器 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Http; using System.Web.Http.Controllers; u ...
分类:
Web程序 时间:
2020-07-20 10:40:40
阅读次数:
85
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using WebApplicatio ...
分类:
Web程序 时间:
2020-07-20 10:40:20
阅读次数:
85
服务端 using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Sockets; using System.Text; using System.Thr ...
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace linq延迟状态终止 ...
分类:
其他好文 时间:
2020-07-19 11:32:54
阅读次数:
69
1 #include <iostream> 2 #include <vector> 3 #include <algorithm> 4 5 using namespace std; 6 7 int main() 8 { 9 vector<int> nums{1,3,4,6,5,3,2,4,7,5}; ...
分类:
编程语言 时间:
2020-07-19 00:53:48
阅读次数:
95