二叉树需要不断的自己画图并且一步一步的跟着程序走才能明白它的原理: #include <iostream> #include<string.h> #include <stdio.h> #include<stack> #include<queue> using namespace std; typed ...
分类:
其他好文 时间:
2020-07-02 16:16:56
阅读次数:
46
版本:CentOS 7 首先: [root@localhost test]# cat /etc/inittab # inittab is no longer used when using systemd. # # ADDING CONFIGURATION HERE WILL HAVE NO EFF ...
分类:
其他好文 时间:
2020-07-02 16:08:49
阅读次数:
72
一、.实现弹窗淡入淡出等效果即弹窗自动关闭 技术要点: 1.弹窗效果(淡入淡出,自下而上滑入)使用WIN API实现 2.弹出的窗体在一定时间后,自动关闭使用一个timer实现,弹窗开始是,打开timer,到设置时间后,触发timer关闭窗体 代码: using System; using Syst ...
分类:
微信 时间:
2020-07-02 14:54:45
阅读次数:
105
789. 数的范围 #include<iostream> #include<vector> #include<algorithm> using namespace std; const int maxn =1e5+10; int a[maxn]; int main() { int n,m,x; ci ...
一、在控制台项目中使用 前提:引入Serilog.AspNetCore包 新建一个Serilog帮助类SerilogHelper,定义两种方法,一个是将日志输出到console,一个是将日志输出到文件 using Serilog; using System; using System.IO; nam ...
分类:
其他好文 时间:
2020-07-02 13:26:09
阅读次数:
43
790. 数的三次方根 #include<iostream> using namespace std; int main() { double x; cin>>x; if(x<0) { cout<<"-"; x=-x; } double l=0,r=x; while(r-l>1e-8) { doub ...
高精度加法 // C = A + B, A >= 0, B >= 0 #include<iostream> #include<vector> using namespace std; vector<int > add(vector<int > &A, vector<int > &B) { vecto ...
快速排序 分治 ①确定分界点:q[l],q[(l+r)/2],q[r] ②调整范围 ③递归处理左右两段 #include<iostream> using namespace std; const int N = 1e5+10; int n; int a[N]; void quick_sort(int ...
分类:
编程语言 时间:
2020-07-02 11:55:45
阅读次数:
58
静态变量和静态方法都必须通过类名来引用。 简单使用示例 using System; class StaticVar { public int x; public static int y; public void PrintInfo(){ Console.WriteLine("非静态变量x={0}" ...
本文转自https://www.freeaihub.com/article/using-pymysql-to-operate-mysql-in-python.html,该页可在线进行本页内容的实验 本节实验您将先进行MySQL的安装,再安装python的pymysql库,通过这个库连接到MySQL数 ...
分类:
数据库 时间:
2020-07-02 09:24:02
阅读次数:
71