首页 > 2017年01月08日 > 全部分享
LeetCode "459. Repeated Substring Pattern"
Brutal force works - and a smarter way is to utilize KMP. The most popular two solutions are essentially the same - one is obvious KMP, and another on ...
分类:其他   时间:2017-01-08 09:52:21    收藏:0  评论:0  赞:0  阅读:252
tuple解包给类的构造函数
首先我们的第一步当然是将tuple解包。tuple提供了一个get函数来获取第N个元素。例如: get<1>(make_tuple(...)); 要将一个tuple全部拆解,就可以使用通过多次调用这个函数来进行解析,例如: auto tup = make_tuple(..........); fun ...
分类:其他   时间:2017-01-08 09:52:08    收藏:0  评论:0  赞:0  阅读:378
简易二维码
演示:http://www.h5-share.com/articles/201701/createqr.html ...
分类:其他   时间:2017-01-08 09:51:53    收藏:0  评论:0  赞:0  阅读:286
mialx配置qq邮箱发送邮件
#send mail use mailx(v12.0.4)#edit configure file set smtp-use-starttlsset from=xxxxxxxxx@qq.comset smtp=smtp://smtp.qq.com:587set smtp-auth-user=xxxx ...
分类:其他   时间:2017-01-08 09:51:37    收藏:0  评论:0  赞:0  阅读:1106
如果存在的话就调用
一,判断在类中某个函数(也可以是变量或类型)是否存在 template<typename T> struct xxxx_detector { template<typename P,void (P::*)(void)> struct detector{}; template<typename P> ...
分类:其他   时间:2017-01-08 09:51:16    收藏:0  评论:0  赞:0  阅读:305
Win7、Ubuntu双系统卸载Ubuntu系统
在Win7基础上安装ubuntu系统,使用EasyBCD创建开机引导GRUB,升级Ubuntu系统后,发现升级失败,不能正常进入Ubuntu系统,只能卸载,详细卸载步骤如下: 1.在Win7系统下,下载个软件MbrFix,解压后,将MbrFix.exe复制到C:\windows\system32文件 ...
分类:Windows开发   时间:2017-01-08 09:51:00    收藏:0  评论:0  赞:0  阅读:299
js数组基本操作
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ...
分类:编程语言   时间:2017-01-08 09:10:55    收藏:0  评论:0  赞:0  阅读:269
接口开发注意传参问题
1 接口开发注意传参问题: 2 3 php中的curl()函数进行post请求的时候,传递数据的格式可以有以下几种方式: 4 5 (1):由参数拼接而成的key=>value键值对字符串。形如以下: name=xxx&age=23$sex=1 6 7 这种请求参数默认是按照application/x... ...
分类:其他   时间:2017-01-08 09:10:24    收藏:0  评论:0  赞:0  阅读:263
yii2表单提交不刷新的问题
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 public function actionContact() { $model = new ContactForm(); if ($model->load(Yii::$app->request->post()) && $ ...
分类:其他   时间:2017-01-08 09:10:01    收藏:0  评论:0  赞:0  阅读:255
ntdll.dll函数原型
/*NTDLL Base Functions*/NTSYSAPI NTSTATUS NTAPI NtAcceptConnectPort( OUT PHANDLE PortHandle, IN PVOID PortIdentifier, IN PPORT_MESSAGE Message, IN BOO... ...
分类:其他   时间:2017-01-08 09:09:46    收藏:0  评论:0  赞:0  阅读:371
正则表达式---总结(1)
语法: ...
分类:其他   时间:2017-01-08 09:09:22    收藏:0  评论:0  赞:0  阅读:267
LeetCode Longest Palindrome
原题链接在这里:https://leetcode.com/problems/longest-palindrome/ 题目: Given a string which consists of lowercase or uppercase letters, find the length of the ...
分类:其他   时间:2017-01-08 09:09:05    收藏:0  评论:0  赞:0  阅读:240
bzoj1610: [Usaco2008 Feb]Line连线游戏
1610: [Usaco2008 Feb]Line连线游戏 Description Farmer John最近发明了一个游戏,来考验自命不凡的贝茜。游戏开始的时 候,FJ会给贝茜一块画着N (2 <= N <= 200)个不重合的点的木板,其中第i个点 的横、纵坐标分别为X_i和Y_i (-1,00 ...
分类:其他   时间:2017-01-08 09:08:49    收藏:0  评论:0  赞:0  阅读:278
Yii2 Pjax的简单使用
有两个例子:刷新时间和数据显示排序 1、刷新时间 (1)控制器中的方法:Time 1 2 3 4 public function actionTime() { return $this->render('time',['time'=>date("h:i:s")]); } 1 2 3 4 public ...
分类:其他   时间:2017-01-08 09:08:28    收藏:0  评论:0  赞:0  阅读:242
PHP 页面编码声明方法详解(header或meta)
2 php的header来定义一个php页面为utf编码或GBK编码 3 4 php页面为utf编码 5 header("Content-type: text/html; charset=utf-8"); 6 7 php页面为gbk编码 8 header("Content-type: text/ht... ...
分类:Web开发   时间:2017-01-08 09:08:13    收藏:0  评论:0  赞:0  阅读:214
BZOJ 1898: [Zjoi2005]Swamp 沼泽鳄鱼 [矩阵乘法]
1898: [Zjoi2005]Swamp 沼泽鳄鱼 Description 潘塔纳尔沼泽地号称世界上最大的一块湿地,它地位于巴西中部马托格罗索州的南部地区。每当雨季来临,这里碧波荡漾、生机盎然,引来不少游客。为了让游玩更有情趣,人们在池塘的中央建设了几座石墩和石桥,每座石桥连接着两座石墩,且每两座 ...
分类:其他   时间:2017-01-08 09:07:54    收藏:0  评论:0  赞:0  阅读:248
LeetCode Ransom Note
原题链接在这里:https://leetcode.com/problems/ransom-note/ 题目: Given an arbitrary ransom note string and another string containing letters from all the magazi ...
分类:其他   时间:2017-01-08 09:07:21    收藏:0  评论:0  赞:0  阅读:259
php变量与数组相互转换的方法(extract与compact
1 #php变量与数组相互转换的方法(extract与compact) 2 3 #compact 多个变量转数组 4 $name = 'sui'; 5 $email = 'sui@qq.com'; 6 $arr = compact('name','email'); 7 print_r($arr); ... ...
分类:编程语言   时间:2017-01-08 09:07:06    收藏:0  评论:0  赞:0  阅读:276
yii2 rbac简介
mysql添加表 打开\vendor\yiisoft\yii2\rbac\migrations\schema-mysql.sql,复制粘贴里面的sql语句放在mysql里执行一遍,增加了4张表 2.配置rbac 1 2 3 4 5 6 7 8 9 10 11 'components' => [ .. ...
分类:其他   时间:2017-01-08 09:06:47    收藏:0  评论:0  赞:0  阅读:276
【LabVIEW技巧】代码块快速放置
前言之前的文章中介绍了如何使用QuickDrop来实现快速代码放置,今天我们来详细的聊一下如何进行代码块的快速放置。正文LabVIWE程序设计中,我们在架构层级总是进行重复性的编写,就拿最常见的事件结构而言,放置While循环与事件结构是最常用的配套操作,简化这两步的操作,那么就会在架构层级节约很多... ...
分类:其他   时间:2017-01-08 09:06:00    收藏:0  评论:0  赞:0  阅读:375
1135条   上一页 1 ... 43 44 45 46 47 ... 57 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!