#include #include using namespace std;int main(int argc, char const *argv[]){ multiset > num; num.insert(3); num.insert(1); num.insert(2); num.insert(...
分类:
其他好文 时间:
2014-07-22 22:48:14
阅读次数:
251
开篇语:上班以后,烦恼少了,至少是没有什么好烦的了,只要负责好自己的工作就可以了,因此也有更多的时间去探索自己喜欢的程序。买回来的书已经看了一半,DEMO也敲了不少,昨晚终于在这里开BLOG,记录一些读书笔记。以我自己的经验来看,写笔记、测试、体会是加深理解的利器,往往起到事半功倍的效果。这几天在看...
分类:
编程语言 时间:
2014-07-22 22:47:56
阅读次数:
304
动态分配的vector指针
vector *get_num(int n)
{
vector *pv = new vector(n+1);
int i , x;
for(i = 0; i >x;
(*pv)[i] = (x);
}
return pv;
}
如果是动态分配的vector...
分类:
其他好文 时间:
2014-07-22 22:38:16
阅读次数:
256
1、在进入安装界面,也就出现图形界面时,对它命令首先创建gpt --按ctrl+alt+f2的组合键,然后进入命令行 --进行如下操作 输入parted 把原来的分区都删除: rm num 输入mklabel gpt /dev/sda 在提示界面中,输入Y...
分类:
系统相关 时间:
2014-07-22 22:38:13
阅读次数:
297
{pc:content action="category" catid="0" num="6" siteid="$siteid" order="listorder ASC"} ?<ul> ??? <li? {if !$catid} class="active" {/if}><a href=‘index.html‘><span>首页</span></a></li> ??? ...
分类:
其他好文 时间:
2014-07-22 22:37:55
阅读次数:
285
官网FAQ里查到以下说明:“You may find that not all of these icons are used on your system. This is because the number of overlays allowed by Windows is limited.....
分类:
其他好文 时间:
2014-07-22 22:35:16
阅读次数:
600
mysql-uroot-e"showprocesslist"|grep-i"Locked">>locklist.txt;
forlineinawk‘{print$1}‘locklist.txt
do
echo"kill$line;">>lock_kill.sql
done查看mysql数据库表大小#!/bin/bash
database=cms
user=root
password=‘123456‘
mysql-u${user}-p${password}-e"use$d..
分类:
数据库 时间:
2014-07-22 18:15:42
阅读次数:
334
bool flock ( int handle, int operation [, int &wouldblock] );flock() 操作的 handle 必须是一个已经打开的文件指针。operation 可以是以下值之一:要取得共享锁定(读取程序),将 operation 设为 LOCK_SH...
分类:
Web程序 时间:
2014-07-22 00:07:34
阅读次数:
278
#include using namespace std;#define maxn 70long long prime[maxn];long long getans(long long num,int m) //求1-mun 不互素的数,m为num素因子的个数;{ ...
分类:
其他好文 时间:
2014-07-22 00:00:36
阅读次数:
160
//十进制的数转化为二进制 public static void toBin(int num){ if(num > 0){ toBin(num/2); System.out.println(num%2); } } 以上面的十进制转化为二进制为例:传参数传入6,把6转化为二进制:使用递归...
分类:
其他好文 时间:
2014-07-21 23:29:01
阅读次数:
225