码迷,mamicode.com
首页 >  
搜索关键字:tasks and back stack    ( 26134个结果
由两个栈组成的队列(C++实现)
代码: #include <iostream>#include <stack># include <string>#include <stdexcept> using namespace std; class My_Queue{public: My_Queue(){}; ~My_Queue(){}; ...
分类:编程语言   时间:2020-07-25 23:40:07    阅读次数:72
SAS ESCAPECHAR /SAS REPORT
1 /*先定义个三线表*/ proc template; define style work.threeline; parent=styles.rtf; class table/ frame=hsides rules=group borderspacing=0pt; end; run; option ...
分类:其他好文   时间:2020-07-25 11:27:42    阅读次数:93
微信小程序实现微信登陆(TP5后端)
思路: 小程序登录获取code,将code传到后台; 后台用code得到微信用户id,即openid,将openid存储在用户表中,完成绑定 登录时,再次获取code并传给后台,得到openid,若用户表中存在,便可直接登录 以下仅是代码片段,更多代码在Github back_end/applica ...
分类:微信   时间:2020-07-25 09:59:11    阅读次数:210
最小栈
此博客链接: 题目链接:https://leetcode-cn.com/problems/min-stack/submissions/ 设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) —— 将元素 x 推入栈中。pop() —— 删除栈顶的元素 ...
分类:其他好文   时间:2020-07-25 09:45:52    阅读次数:70
设计一个有getMin功能的栈(C++实现)
代码: #include <iostream> #include <stack> # include <string> #include <stdexcept> using namespace std; class my_stack { public: my_stack(){}; ~my_stack ...
分类:编程语言   时间:2020-07-25 09:28:16    阅读次数:67
python 对象 例子
上图可以看出,对象没有初始化函数,实例化对象不能传参,但是可以调用方法 上图可以看出, self不能接受参数 上图可以看出,对于有初始化函数的类,必须要指定参数。 ...
分类:编程语言   时间:2020-07-25 09:19:49    阅读次数:68
莫队模版
#include <algorithm> #include <string> #include <cstring> #include <vector> #include <map> #include <stack> #include <set> #include <queue> #include < ...
分类:其他好文   时间:2020-07-24 23:42:50    阅读次数:81
分布式事务: 深入理解什么是2PC,3PC及TCC协议
1. 导读 对于分布式事务的概念,可能还会有很多同学不理解或者理解得不是很深刻的地方,在这篇文章中,作者打算重点给大家先介绍下分布式事务相关的基本概念,诸如2PC、3PC、TCC之类的基本问题。 2. 数据库事务的概念 在讲述分布式事务的概念之前,我们先来回顾下事务相关的一些概念。 事务的基本概念: ...
分类:其他好文   时间:2020-07-24 22:11:46    阅读次数:87
gitlab备份与还原
gitlab备份首先设定备份目录我设置的本地目录是/mnt/gitlab/git-data/backupvim/etc/gitlab/gitlab.rb修改如下内容:gitlab_rails[‘backup_path‘]="/mnt/gitlab/git-data/backup/"设置完保存然后重载配置gitlab-ctlreconfiguregitlab-rakegitlab:backup:cr
分类:其他好文   时间:2020-07-24 21:32:21    阅读次数:75
一些封装
namespace my_std{ using namespace std; #define Re register #define rep(i,a,b) for(Re int i=(a);i<=(b);i++) #define drep(i,a,b) for(Re int i=(a);i>=(b) ...
分类:其他好文   时间:2020-07-24 21:16:57    阅读次数:62
26134条   上一页 1 ... 70 71 72 73 74 ... 2614 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!