#include<cstdio> #include<algorithm> const int N = 1e6 + 1; int n, t[N]; namespace lsh{ int lsh[N], tmp[N]; void init() { for (int i = 1; i <= n; ++i) ...
分类:
编程语言 时间:
2021-04-10 13:40:10
阅读次数:
0
原文链接:https://www.cnblogs.com/lizhenghao126/p/11053598.html 函数声明 template< class RandomIt, class Compare > constexpr void sort( RandomIt first, RandomI ...
分类:
编程语言 时间:
2021-04-10 13:28:28
阅读次数:
0
public class Demo { public static void main(String[] args) { System.out.println(Contains1("abfadawdawdawd", ".*daw.*")); System.out.println(Contains2( ...
分类:
其他好文 时间:
2021-04-10 13:19:37
阅读次数:
0
package test; public class test1 { public static void main(String args[]){ //使用for循环计算1-100的和,除了以3结尾的那些数 int sum = 0; for(int x = 1;x<=100;x++){ if(x% ...
分类:
其他好文 时间:
2021-04-10 13:09:10
阅读次数:
0
1.循环遍历 private void GetControls(Control fatherControl) { Control.ControlCollection sonControls = fatherControl.Controls; foreach (Control control in s ...
public static void LogToFile(string LogFilePath, string LogFileName, string doWhat, string msg) { string stmp = "时间:" + DateTime.Now.ToString("yyyy-MM ...
分类:
其他好文 时间:
2021-04-10 12:59:29
阅读次数:
0
2.1.C语言的汇编表示 c语言代码 int plus(int x,int y) { return 0; } void main() { __asm { mov eax,eax } //调用函数 plus(1,2); return; } 汇编代码 1: 2: int plus(int x,int y ...
分类:
编程语言 时间:
2021-04-10 12:50:12
阅读次数:
0
直接遍历链表,使用set做标记位(标记是否已经到达过) /** * Definition for singly-linked list. * type ListNode struct { * Val int * Next *ListNode * } */ type void struct{} fun ...
分类:
其他好文 时间:
2021-04-10 12:49:23
阅读次数:
0
获取 itextsharp 包 files 图片文件路径列表 pdfFileName 输出的 pdf文件 public bool MergeFileToPDF(List<string> files,string pdfFileName) { iTextSharp.text.Document docu ...
继承 概念:继承是面向对象最显著的一个特性。继承是从已有的类中派生出新的类,新的类能吸收已有类的数据属性和行为,并能扩展新的能力。 语法:class 子类 extends 父类 通过代码可以发现,子类(Student)并没有定义任何的操作,而在主类中所使用的全部操作都是由Person类定义的,这证明 ...
分类:
编程语言 时间:
2021-04-09 13:38:03
阅读次数:
0