码迷,mamicode.com
首页 >  
搜索关键字:remove    ( 8897个结果
poj 1442 名次树
这回要求的是第k小的元素,参考了ljl大神的模板,orz 1 //insert 插入 2 //remove 删除 3 //_find 查找 4 //kth 返回root为根的树中第k小的元素 5 //treap插入、删除、查询时间复杂度均为O(logn) 6 #include 7 #...
分类:其他好文   时间:2014-10-28 19:55:27    阅读次数:283
Lua 之os库
标准os库os.rename(oldname, newname)文件重命名;os.remove(filename)删除一个文件os.execute(cmd)os.execute可运行一条系统命令,类似于C语言的system函数。os.execute("mkdir /tmp/cq")os.exit(c...
分类:其他好文   时间:2014-10-28 17:24:33    阅读次数:182
MVC中如何跳过对模型中某个属性的验证
[HttpPost] public ActionResult Create(Users user) { ModelState.Remove(“Password”); //加上这句就行了 if (ModelStat...
分类:Web程序   时间:2014-10-28 15:25:07    阅读次数:166
centos7通过yum安装mysql,并授权远程连接
安装: CentOS 7的yum源中貌似没有正常安装mysql时的mysql-sever文件,需要去官网上下载(通过安装yum源地址,再通过yum安装mysql) 注:安装前,需要卸载所有的mariadb软件(完成兼容mysql的另一个数据库,mysql原创者所写),通过命令yum remove mariadb* 获取yum地址: 安装yum地址:...
分类:数据库   时间:2014-10-28 13:54:16    阅读次数:183
LeetCode:Remove Duplicates from Sorted List
问题描述: Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 思路:遍历链表,通过两个指针...
分类:其他好文   时间:2014-10-28 12:12:23    阅读次数:143
Lua Table元素的删除
Lua 中的Table元素删除主要有两种方法:1、将字段赋值为 nil2、使用Table库里的 table.remove(table, index) 下面着重讲解两种方法 1 table.remove 先来看一下这个库函数的函数原型: table.remove(table, pos) @table:...
分类:其他好文   时间:2014-10-28 10:22:04    阅读次数:608
debian下重装mysql
mysql总是报错,说sock文件不存在,网上若干方法,更改权限,更改配置文件,结果还是不能正常生成.sock文件。没办法,删除,重新安装。完全删除:删除 mysqlsudo apt-get autoremove --purge mysql-server-5.5sudo apt-get remove...
分类:数据库   时间:2014-10-27 21:06:18    阅读次数:202
Wordpress 如何隐藏搜索框/发表日期/作者等
一切只为了让Wordpress作为一个最纯粹最干净的网页发布工具。How i can remove search box in header.Remove author, date, and category from posts.
分类:其他好文   时间:2014-10-27 17:00:51    阅读次数:212
fragment中remvoeFragment 和 detachFragment 的区别
一, remvoeFragment 和 detachFragment 的区别: public?void?removeFragment(Fragment?fragment,?int?transition,?int?transitionStyle)?{ ????????if?(DEBUG)?Log.v(TAG,?"remove:?"?+?...
分类:其他好文   时间:2014-10-27 14:31:44    阅读次数:223
leetcode Remove Element
挺简单的,没什么好说的public class Solution { public int removeElement(int[] A, int elem) { int j=0; for(int i=0;i<A.length;i++){ if(...
分类:其他好文   时间:2014-10-27 14:13:22    阅读次数:168
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!