1.find() 返回值为目标元素的下标,若不存在目标元素则返回-1 #include<iostream> using namespace std; int main() { string str1 = "A BC", str2 = "abc"; char c = '5'; int i; i= st ...
分类:
其他好文 时间:
2020-12-19 13:09:58
阅读次数:
2
介绍 Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。 功能特性 在浏览器中发送 XMLHttpRequests 请求; 在 node.js 中发送 http请求; 支持 Promise API; 拦截请求和响应; 转换请求和响应数据; 自动转换 JS ...
分类:
移动开发 时间:
2020-12-19 12:22:55
阅读次数:
2
首先,先创建一个用户,这步应该很简单。 用root账户(或者其他有权限的账户)登录, mysql -u root -p 回车 输入密码 回车 切换到mysql表 在user表里插入一个用户就OK mysql> use mysql Database changed mysql> insert into ...
分类:
数据库 时间:
2020-12-19 12:11:46
阅读次数:
1
系统环境:centos7 数据库版本:mysql Ver 14.14 Distrib 5.7.29, for linux-glibc2.12 (x86_64) using EditLine wrapper 一:首先要关闭数据库,以什么方式启动的数据库就要以什么方式结束数据库 1 [root@db01 ...
分类:
数据库 时间:
2020-12-19 11:54:34
阅读次数:
1
Ruby Script Demo Portscan.rb #!/usr/bin/ruby require 'socket' TARGET = ARGV[0] || '192.168.2.22' MINPORT = ARGV[1] || 22 MAXPORT = ARGV[2] || 80 $i = ...
分类:
Web程序 时间:
2020-12-18 12:51:30
阅读次数:
4
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.DirectoryServices; na ...
题目: 题目大意: 在数组中寻找和最大的一段连续的序列 思路: 用贪心的做法,从第一个开始,累加a[i],如果sum<0就把这一段给舍去掉,从新的起点开始,如果sum>max,则进行信息的更新 #include <iostream> using namespace std; const int MA ...
分类:
其他好文 时间:
2020-12-18 12:36:16
阅读次数:
2
PowerShell Crescendo是一个框架,可以快速地把【linux本机命令】封装成PowerShell cmdlet,输出属性,支持Sort-Object Where-Object过滤。 而与平台无关。win,linux通用。 ...
分类:
系统相关 时间:
2020-12-18 12:19:29
阅读次数:
3
比赛链接:https://codeforces.ml/contest/1461 A. String Generation 给定字符长度和最大回文子串长度,输出一个由'a','b','c'构成的字符串。 解题代码: #include <iostream> using namespace std; in ...
分类:
其他好文 时间:
2020-12-17 12:37:52
阅读次数:
2
把冰块拆点来保证企鹅起跳的限制,对于所有点为汇点跑一边最大流看看是不是和企鹅人数相等 #include<bits/stdc++.h> #define FT(a,b) memset(a,b,sizeof(a)) using namespace std; const int N = 300 + 10 , ...
分类:
其他好文 时间:
2020-12-17 12:05:40
阅读次数:
3