06 2014 档案
摘要:记一次编译过程undefined reference to symbol xx@@GLIBC_2.2.51. 开始以为是链接错误,更换库的顺序,但不奏效2. 把动态库换成静态库,这个肯定一样的效果3. 更新gcc版本4. 想到是不是glibc的原因,但是,这里提示的是找不到,很可能是少了什么,版本?...
阅读全文
摘要:namp -sP 192.168.1.0/24getconf LONG_BITsudo cpulimit -p pid -l 50:w !sudo tee > /dev/null %rename 'y/A-Z/a-z/' * 将当前的文件改成小写rename 'y/a-z/A-Z/' *tail -...
阅读全文
摘要:find使用find示例find path -option [-printf] [-exec -ok cmd ] {} \-name -user -size -depthfind ~ -name “a.c” 在~下递归的找并打印出来,也可不要引号find . -name “[A-Z]*”-5. fi...
阅读全文
摘要:- sudo apt-get install rdesktop说明-u -p 用户名和密码 -f 全屏 -g WxH 大小还有一个比较好的是可以在两边粘贴和复制
阅读全文
摘要:Markdown在ubuntu下的使用工具的使用安装的软件如下:sudo apt-get install retextretext Release-Notes.mdsudo apt-get install discountsudo apt-get install python-markdownsud...
阅读全文
摘要:实用shellsudo !!python -m SimpleHTTPServer^foo^barctrl-x ecmdalt+. or Esc+.resetmount | column -tman asciicurl ifconfig.memount -t tmpfs tmpfs /mnt -o s...
阅读全文
摘要:staticedit上的一个模板以后使用就方便了,直接套用Welcome to StackEdit! {#welcome}=====================Hello, I am your first Markdown document within **StackEdit**[^stack...
阅读全文
摘要:1. 一个在线的编辑txt流程图的地方,可用在txt中编辑,支持方格,线段,箭头,文字适合开发时跨平台的显示http://asciiflow.com/2. 命令行参考http://www.commandlinefu.com/commands/browse3. 绝对神器可视化的编辑成网页/pdf/ht...
阅读全文
摘要:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
阅读全文
摘要:Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
阅读全文
摘要:Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST./** * Definition for singly-linked list. ...
阅读全文
摘要:Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree./** * Definiti...
阅读全文
摘要:Given preorder and inorder traversal of a tree, construct the binary tree./** * Definition for binary tree * struct TreeNode { * int val; * Tr...
阅读全文
摘要:Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
阅读全文
摘要:CXX = g++TARGET = bitmaploctestC_FLAGS += -g -WallLIB_FLAGS = -pthreadall: $(TARGET)bitmaploctest: bitmaploctest.o bitmaploc.o file_lock.o $(CXX) -...
阅读全文
摘要:Valgrind 是一款 Linux下(支持 x86、x86_64和ppc32)程序的内存调试工具,它可以对编译后的二进制程序进行内存使用监测
阅读全文
摘要:已知的几个命令:encaconvmviconv
阅读全文
摘要:转自http://blog.csdn.net/wzzfeitian/article/details/30995303基本常识1.变量命名规则:首字符必须为字母中间不能有空格,可以有下划线_不能使用标点符号不能使用bash里的关键字2.变量赋值:变量名=值, (注意,= 两边不能有空格)var=1va...
阅读全文
摘要:1. shell变量只能是字母加_,必须以字母开头,不能是其它字符2. num = 2,则echo "this is ${num}nd" 才打印this is 2nd"this is {$num}nd" 将打印this is {2}nd3. shell变量赋值默认是字符串赋值. 如var = 1, ...
阅读全文
摘要:联想实习招聘,注意岗位凑合看吧
阅读全文
摘要:不用if.else.while等一切的条件判断这题真是涨知识了:1. #includetypedef int (*fun)(int);int f1(int i){ return 0;}int f2(int i){ fun f[2]={ f1,f2 }; return i+f[!!i...
阅读全文
摘要:qq的使用一直存在问题,真是考验人的耐性和windows上的体验不可同日而语,只能用webqq将就,但是极不方便找到过几种解决方案,但仍不尽人意这里提供一种,仍不完美,一直苦苦探寻 sudo add-apt-repository ppa:lainme/pidgin-lwqqsudo apt-get ...
阅读全文
摘要:/* * ===================================================================================== * * Filename: 1-8.c * * Description: * * ...
阅读全文
摘要:1.在Nautilus文件管理器中,右键添加“在终端中打开”sudo apt-get install nautilus-open-terminal 2.在任务栏中添加CPUMEM网速信息sudo apt-get install python python-psutil python-appindic...
阅读全文
摘要:首先申明,这个是转载的,原文 http://blog.csdn.net/tiankonguse/article/details/29859667http://tiankonguse.com/record/(按文章中的意思,标注)按他的方式,在本机上测试成功.具体步骤的会总结附文,这里只想针对此事说下...
阅读全文
摘要:/* * ===================================================================================== * * Filename: QuickSort.c * * Description: * * ...
阅读全文
摘要:#include #include using namespace std;const int maxn = 100;struct Node{ int key; Node *lchild, *rchild, *parent;};Node *p, node[maxn];int cnt;vo...
阅读全文
摘要:#include #include #include #include using namespace std;const int maxn = 100;bool g[maxn][maxn], visited[maxn];int n;queue q;void init(){ memset(g,...
阅读全文
摘要:1.判断单链表是否存在环2.找出环节点node* loopstart(node *head){ if(head==NULL) return NULL; node *fast = head, *slow = head; while(fast && fast->next){ ...
阅读全文
摘要:如4->4->6 + 2->4 = 4->7->0#include using namespace std;typedef struct node{ int data; node *next;}node;node* init(int a[], int n){ node *head=...
阅读全文
摘要:#include#include#includechar result[200];void mulStr(char *str, char *one, char* two){ char *str1 = one; char *str2 = two; if(!strcmp(str1,"0...
阅读全文
摘要:Gas StationTotal Accepted:12395Total Submissions:50855My SubmissionsThere areNgas stations along a circular route, where the amount of gas at stationi...
阅读全文
摘要:class Solution {public: int threeSumClosest(vector &num, int target) { int len = num.size(); sort(num.begin(),num.end()); i...
阅读全文
摘要:class Solution {public: vector > threeSum(vector &num) { vector>result; vectorvec; int len = num.size(); //assert(l...
阅读全文
摘要:/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(...
阅读全文
摘要:class Solution {public: string longestCommonPrefix(vector &strs) { int size = strs.size(); if(size==0) return ""; ...
阅读全文
摘要:class Solution {public: int atoi(const char *str) { bool negative = false; while(*str==' ')str++ ; if(*str=='-') ...
阅读全文
摘要:关注官方微博关注官方微信添加到我的笔记下载有道云笔记2014年互联网IT待遇创建时间:2014-1-2 17:34修改时间:2014-1-2 17:41来源:http://blog.renren.com/share/331237347/16746027660?from=0101010202&ref=...
阅读全文