摘要:        
vector由于key是顺序增长的整数,所以无法提供高效的按value查找的函数。使用vector进行查找时,要借助find. vector<int>::iterator p; p=find(v.begin(),v.end(),a); if(p!=v.end())cout<<"we find the number: "<<*p<<endl; elsecout<<"...    阅读全文
posted @ 2013-04-01 07:54
浪里飞
阅读(1571)
评论(0)
推荐(0)
        
            
        
        
摘要:        
在source insight 中添加系统字体 1. “控制面板:--->“字体”--->找到Courier New(建议用这个字体,比Courier要平滑) 然后选中该字体,右键,选择显示。 2. 重启source insight 3. Options--->Document Options---->Screen Fonts 4. 如果要修改背景颜色为漂亮的豆...    阅读全文
posted @ 2013-04-01 07:35
浪里飞
阅读(3095)
评论(0)
推荐(0)
        
            
        
        
摘要:        
找出占用磁盘空间最大的前10个文件或文件夹 法1: # du -a /var | sort -n -r | head -n 10 法2: 如果需要输出可读性高的内容,请使用如下命令: $ cd /path/to/some/where $ du -hsx * | sort -rh | head -10 原文: http://my.oschina.net/huxuanhui/blog/...    阅读全文
posted @ 2013-04-01 07:30
浪里飞
阅读(1045)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号