码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
策略模式与简单工厂模式
参考 工厂模式中只管生产实例,具体怎么使用工厂实例由调用方决定,工厂模式调用方可以直接调用工厂实例的方法属性等。 策略模式是将生成实例的使用策略放在策略类中配置后才提供调用方使用,策略模式不能直接调用实例的方法属性,需要在策略类中封装策略后调用。 事列代码: using System; using ...
分类:其他好文   时间:2020-07-03 17:24:48    阅读次数:50
解决【npm ERR! Unexpected end of JSON input while parsing near '...sh_time":141072930277'】方案
执行npm install的时候报错npm ERR! Unexpected end of JSON input while parsing near '...sh_time":141072930277'.如下图: 直接执行 npm cache clean --force, 如果执行成功,再npm i ...
分类:Web程序   时间:2020-07-03 15:45:57    阅读次数:79
C# XDocument
XDocument 说明LINQ处理XML文件的一个类 添加引用 using System.Linq; using System.Xml.Linq; using System.Xml.XPath; 引用xml文件 XDocument xml = XDocument.Load("IOS.xml"); ...
分类:Windows程序   时间:2020-07-03 15:22:41    阅读次数:86
NET CORE 3.1 Orac Daper
Install-Package Dapper -Version 1.50.5 Install-Package Oracle.ManagedDataAccess.Core -Version 2.12.0-beta2 appsettings.json "ConnectionStrings": { "Em ...
分类:Web程序   时间:2020-07-03 12:31:38    阅读次数:68
最短路
dijkstra+堆优化: P4779 【模板】单源最 code: #include<bits/stdc++.h> using namespace std; const int N=3e5; int n,m; int s,x,y,w; int head[N]; int dis[N]; bool vi ...
分类:其他好文   时间:2020-07-03 12:11:33    阅读次数:57
MySQL数据库使用报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
今天MySQL数据库,在使用的过程中一直报错ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. 之所以出现这个问题是因为用户可以登录到 ...
分类:数据库   时间:2020-07-03 10:51:19    阅读次数:59
力扣(LeetCode)试题26-删除排序数组中的重复项 C++代码
ε=(´ο`*)))唉,继续加油,先实现功能 1 #include <iostream> 2 #include <vector> 3 4 using namespace std; 5 6 class Solution { 7 public: 8 int removeDuplicates(vector ...
分类:编程语言   时间:2020-07-03 10:30:08    阅读次数:70
luogu P1742 最小圆覆盖
最小圆覆盖 主要是我太菜了不会证明qwq,上面的博客讲的非常好。 主要是存代码: #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> #include<cmath> using namespace std ...
分类:其他好文   时间:2020-07-03 10:23:25    阅读次数:46
PTA 乙级 1016 部分A+B (15分)
今天脑子有点不太清醒,先做这个,明天做1015(偷懒了,这个是个水题) C++ 1 #include<iostream> 2 3 using namespace std; 4 5 int main() { 6 string a, b; 7 char da, db; 8 int pa = 0, pb ...
分类:其他好文   时间:2020-07-03 00:53:02    阅读次数:63
loj 3311「ZJOI2020」字符串 - 平方串
题目传送门 传送门 写了一个平方暴力草榜了 考虑找出所有本原平方串,然后计算直接每个 +1 然后减去相邻的,做一个扫描线。你在想 peach 很显然,没有算到非本原平方串。考虑每个非本原平方串是恰好一个本原平方串重复若干次。 考虑两个不同本原串分别重复若干次是一定不相同的,否则可以找到一个更小的周期 ...
分类:其他好文   时间:2020-07-03 00:43:37    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!