C++中的容器大致可以分为两个大类:顺序容器和关联容器。顺序容器中有包含有顺序容器适配器。 顺序容器:将单一类型元素聚集起来成为容器,然后根据位置来存储和访问这些元素。主要有vector、list、deque(双端队列)。顺序容器适配器:stack、queue和priority_queue。 关联容 ...
分类:
编程语言 时间:
2020-03-21 21:23:03
阅读次数:
84
#include<iostream> #include <stack> #include <algorithm> #include <string> using namespace std; typedef struct ListNode { int data; struct ListNode* n ...
分类:
其他好文 时间:
2020-03-21 21:21:36
阅读次数:
60
俄罗斯方块 来自网上,修改,供学习,不记得来自哪里,谢谢大神,如有侵权,请告知。 代码: import random, time, pygame, sys from pygame.locals import * #Frame(画面、帧),p就是Per(每),s就是Second(秒) FPS = 25 ...
分类:
其他好文 时间:
2020-03-21 21:06:49
阅读次数:
78
题目描述 An inorder binary tree traversal can be implemented in a non recursive way with a stack. For example, suppose that when a 6 node binary tree (wit ...
分类:
其他好文 时间:
2020-03-21 18:17:53
阅读次数:
52
方法1:利用stark的先进后出的特点 思路: 1.将字符串转换为字符型数组 2.遍历数组,入栈 Stark.pull() 3.出栈 Stark.pop(),利用Stringbuider.append拼接输出。 import java.util.Stack;public class Main { p ...
分类:
其他好文 时间:
2020-03-21 17:51:42
阅读次数:
65
首先把sln文件用记事本打开,在文件开头把Microsoft Visual Studio Solution File, Format Version 12.00# Visual Studio 2012改为:Microsoft Visual Studio Solution File, Format V ...
分类:
其他好文 时间:
2020-03-21 10:08:31
阅读次数:
71
Flask框架整个流程源码解读 """ app.run() 本质执行的是 run_simple(ip,host,self) self 是当前的app对象 app.__call__ """ golbal文件,生成这些对象 _request_ctx_stack = LocalStack() _app_c ...
分类:
其他好文 时间:
2020-03-20 23:54:45
阅读次数:
131
转自博客 https://blog.csdn.net/weixin_39102174/article/details/90411116 以上博主讲的更清除些,此博客是为了自己加深记忆。 对于前后端分离的项目来说session来判断是否登陆实现比较困难,token是比较好的方式。 大概流程: 1.用户 ...
分类:
编程语言 时间:
2020-03-20 17:01:25
阅读次数:
88
可以看到,在exml编辑器中我们给UI组件添加了ID属性; 之后在对应的 ts文件中使用这个组件 namespace ui { export class GameCtrl extends eui.Component { constructor() { super(); this.skinName = ...
分类:
其他好文 时间:
2020-03-20 12:41:35
阅读次数:
197
点击桌面,在终端中打开 如下终端界面 输入命令 sudo apt update 输入账号的密码 以下为命令运行完的截图 ...
分类:
其他好文 时间:
2020-03-20 12:25:46
阅读次数:
135