码迷,mamicode.com
首页 >  
搜索关键字:tmp    ( 7796个结果
LeetCode Count and Say
class Solution {public: string countAndSay(int n) { vector num; num2digit(1, num); vector tmp; for (int i = 1; i &digit...
分类:其他好文   时间:2014-07-16 17:02:13    阅读次数:144
Effective C++ Item 48 认识 template 元编程
经验:Template metaprogramming (TMP, 模板元编程)可将工作由运行期移往编译期,因而得以实现早期错误侦测和更高的执行效率 示例1: template void advance(IterT &iter, DistT d){ if(typeid(typename std::iterator_traits::iterator_catogory) == typeid(std::random_access_it...
分类:编程语言   时间:2014-07-16 13:20:54    阅读次数:313
tcpdump学习记录
tcpdumpwiresharktcpdump-ibr0-nnhost192.168.1.12andport80-w/tmp/baidu.pcap-nn:直接以IP及portnumber显示,而非主机名与服务名称tcpdump-r/tmp/baidu.pcap-nnhost192.168.1.12tcpdump-ieth0-vnnsrchost192.168.1.12tcpdump-ieth0-vnndsthost192.168.1.12tcpdump-ieth0-vnnu..
分类:其他好文   时间:2014-07-15 11:20:25    阅读次数:196
rpm build error: invalid predicate
rpm build errorerror message:/usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/RPMS find: invalid predicate `' error: Bad exit status from /var/tmp...
分类:其他好文   时间:2014-07-14 21:28:46    阅读次数:791
gcc编译参数-fPIC问题 `a local symbol' can not be used when making a shared object;
gcc -shared -o hack.so hack.c/usr/bin/ld: /tmp/ccUZREwA.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object...
分类:其他好文   时间:2014-07-14 19:26:29    阅读次数:1539
小知识点积累_linux
1. 建立层级目录:使用 mkdir 的 -p 选项,如 mkdir -p tmp/a/b/c。2. 解包到指定的目录:使用 tar 的 -C 选项,如 tar xvf newarc.tar.gz -C tmp/a/b/c。3. 联合命令:使用 ;、&&、|| 等控制运算符,如 cd tmp/a/b...
分类:系统相关   时间:2014-07-14 14:48:25    阅读次数:398
ld returned 1 exit status"的解决办法
在Linux下创建线程时,编译时会出现下面的错误,[root@linuxserver 807]# gcc -o 22 22.c/tmp/cc21HcoW.o(.text+0x4c): In function `main':: undefined reference to `pthread_creat...
分类:其他好文   时间:2014-07-14 08:44:11    阅读次数:290
[题解]RQNOJ PID87 过河
链接:http://www.rqnoj.cn/problem/87思路:动态规划 定义f[i][j]表示到达第 i 块给定石头用了 j 块添加石头的最少步数。 转移方程:f[i][j]=min{f[k][j-tmp[pos[i]-pos[k]]+1]+tmp[pos[i]-pos[k]]...
分类:其他好文   时间:2014-07-13 23:54:14    阅读次数:404
磁盘自动分区
#!/bin/bash##########################################Function:autofdisk#Usage:bashauto_fdisk.sh#Author:Customerservicedepartment#Company:AlibabaCloudComputing#Version:2.0#########################################count=0tmp1=/tmp/.tmp1tmp2=/tmp/.tmp2>$tmp1..
分类:其他好文   时间:2014-07-13 15:03:56    阅读次数:299
快速排序
1 #include 2 #include 3 #include 4 using namespace std; 5 6 void swap(int *a, int *b){ 7 int tmp; 8 tmp = *a; 9 *a = *b;10 *b = tmp;...
分类:其他好文   时间:2014-07-13 13:11:27    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!