上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 73 下一页
摘要: 如果不知道配置文件及脚本的位置,可以在vim中使用命令:scriptnames,将显示如下路径/etc/vimrc/usr/share/vim/vim72/syntax/syntax.vim/usr/share/vim/vim72/syntax/synload.vim/usr/share/vim/vim72/syntax/syncolor.vim/usr/share/vim/vim72/filetype.vim/usr/share/vim/vim72/ftplugin.vim/home/kdj/.vimrc~$ cat .vimrc"""""& 阅读全文
posted @ 2012-07-10 12:56 Dsp Tian 阅读(1968) 评论(0) 推荐(0) 编辑
摘要: rm -rf 目录 阅读全文
posted @ 2012-07-09 18:13 Dsp Tian 阅读(431) 评论(0) 推荐(0) 编辑
摘要: ctrl+alt+t 阅读全文
posted @ 2012-07-09 11:54 Dsp Tian 阅读(499) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string>#include <boost/program_options.hpp>int main(int argc,char **argv){ namespace po = boost::program_options; po::option_description desc("allowed options"); desc.add_options() ("help,h", "help message") ("version, 阅读全文
posted @ 2012-07-09 09:40 Dsp Tian 阅读(680) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash s=0 for ((i=1;i<=100;i=i+1)) do ((s=$s+$i)) done echo $s if [ $s -eq 5050 ] then echo "right" else echo "wrong" fi i=0 s=0 while [ $i -le 阅读全文
posted @ 2012-07-08 20:26 Dsp Tian 阅读(599) 评论(0) 推荐(0) 编辑
摘要: clear all;close all;clc;img=imread('lena.jpg');img=im2bw(img,graythresh(img));imshow(img)[height width]=size(img);img_re=zeros(height,width);temp=[];for i=2:height-1 %腐蚀 for j=2:width-1 temp=img(i-1:i+1,j-1:j+1); img_re(i,j)=min(temp(:)); endendfor i=2:height... 阅读全文
posted @ 2012-07-04 22:07 Dsp Tian 阅读(4014) 评论(0) 推荐(1) 编辑
摘要: clear all; close all; clc; n=40; point=load('point.mat'); current_point=point.point; plot(current_point(:,1),current_point(:,2),'r'); %系统方程:x(k+1)=fi* 阅读全文
posted @ 2012-07-04 15:19 Dsp Tian 阅读(11368) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;class Road{public: Road(){} virtual ~Road(){} void operation() { start(); step1(); step2(); step3(); end(); } void start(){cout<<"start"<<endl;} void end(){cout<<"end"<<endl;} virtual void step1()=0; ... 阅读全文
posted @ 2012-06-30 21:23 Dsp Tian 阅读(573) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string>using namespace std;class math{public: math(){} virtual ~math(){} virtual void add()=0;};class ADD1 : public math{public: ADD1(){} virtual ~ADD1(){} void add() { cout<<"the first type of add"<<endl; }};class ADD2 : public math{pub 阅读全文
posted @ 2012-06-30 20:44 Dsp Tian 阅读(510) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string>#include <vector>#include <algorithm>#include <functional>using namespace std;class Observer{public: Observer(){} virtual ~Observer(){} virtual void run()=0;protected: string _name;};class atlete : public Observer{public: atlete(strin 阅读全文
posted @ 2012-06-28 22:37 Dsp Tian 阅读(576) 评论(0) 推荐(0) 编辑
上一页 1 ··· 56 57 58 59 60 61 62 63 64 ··· 73 下一页