Emerged since c++11, lambda expression/function is an unnamed function object capable of capturing variables in scope. 1. syntax of a lambda expressio ...
分类:
编程语言 时间:
2019-12-21 09:32:48
阅读次数:
86
[TOC] 题目大意 要求维护一个栈,提供压栈、弹栈以及求栈内中位数的操作(当栈内元素$n$为偶数时,只是求第$n/2$个元素而非中间两数的平均值)。最多操作100000次,压栈的数字$key$范围是[1,100000]。 题目分析 前两个操作用$stack$就好。 求中位数。暴力做法即使用上优先队 ...
分类:
编程语言 时间:
2019-12-20 21:00:34
阅读次数:
94
View Users CronjobUse the following syntax to view waqleh user's cronjob: crontab -u waqleh -lView Root User CronjobJust type the following command: c ...
分类:
其他好文 时间:
2019-12-20 18:53:40
阅读次数:
92
HTML5 HTML5简介 万维网的核心语言、标准通用标记语言下的一个应用超文本标记语言(HTML)的第五次重大修改。作为新HTML语言,具有新的元素,属性和行为 它具有更大的技术集,允许更多样化和强大的网站和应用程序 增加了新特性: 语义特性,本地存储特性,设备兼容特性,连接特性,网页多媒体特性, ...
分类:
Web程序 时间:
2019-12-20 13:42:56
阅读次数:
117
这几天一直在弄微信登录,然后我这里提供了个接口给前端参数获取openid。 然后我在日志中看到{"errcode":40029,"errmsg":"invalid code, hints: [ req_id: KejFy24ce-7ghOra ]"},其实就是传入的code是无效的。code有效期只 ...
分类:
微信 时间:
2019-12-20 11:51:51
阅读次数:
283
Models.proto syntax = "proto3"; package services; //商品模型 message ProdModel { int32 prod_id = 1; string prod_name = 2; float prod_price = 3; } Prod.pro ...
分类:
其他好文 时间:
2019-12-19 23:19:46
阅读次数:
138
启动 启动代码格式:nginx安装目录地址 c nginx配置文件地址 例如: [root@LinuxServer sbin] /usr/local/nginx/sbin/nginx c /usr/local/nginx/conf/nginx.conf 停止 nginx的停止有三种方式: 从容停止 ...
分类:
其他好文 时间:
2019-12-19 23:13:44
阅读次数:
88
创建服务端并调用 syntax = "proto3"; package services; message ProdRequest { int32 prod_id = 1; //传入id } message ProdResponse { int32 prod_stock = 1; //商品库存 } ...
分类:
其他好文 时间:
2019-12-19 23:03:27
阅读次数:
125
1、ERROR: Invalid atom type in neighbor exclusion list ,遇到这个错误从LAMMPS官网错误中我们发现这是因为:Atom types must range from 1 to Ntypes inclusive,原子种类设置可能有问题,检查若干遍之后 ...
分类:
其他好文 时间:
2019-12-19 19:37:54
阅读次数:
124
原文:https://blog.csdn.net/baidu_32383657/article/details/53020624 原博主:http://blog.csdn.net/lpftobetheone/article/details/11099785 对此进行了整理 一、错误 SQL> sta ...
分类:
数据库 时间:
2019-12-19 19:12:42
阅读次数:
115