上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 79 下一页
摘要: ctrl+alt+t 阅读全文
posted @ 2012-07-09 11:54 Dsp Tian 阅读(527) 评论(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 阅读(702) 评论(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 阅读(612) 评论(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 阅读(4062) 评论(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 阅读(11421) 评论(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 阅读(582) 评论(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 阅读(526) 评论(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 阅读(588) 评论(0) 推荐(0)
摘要: #include <iostream>#include <string>#include <vector>#include <iomanip>using namespace std;class info{public: info():pc(0){} ~info(){} void input(string name,int age,int salary) { _name.push_back(name); _age.push_back(age); _salary.push_back(salary); pc++; ... 阅读全文
posted @ 2012-06-28 20:49 Dsp Tian 阅读(597) 评论(0) 推荐(0)
摘要: #include <iostream>#include <string>using namespace std;class absperson;class absmed{public: absmed(){} virtual ~absmed(){} virtual void send(string,absperson*)=0; virtual void set(absperson*,absperson*)=0;};class absperson{public: absperson(){} virtual ~absperson(){} virtual vo... 阅读全文
posted @ 2012-06-28 15:00 Dsp Tian 阅读(588) 评论(0) 推荐(0)
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 79 下一页