自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

转载 图像旋转

%双线性内插法做图像旋转clear,homeformat compacta=imread('Gone_with_the_wind_8bits.bmp');%读入图像[m,n]=size(a);alpha_=input('请输入旋转角(角度制):');alpha_=mod(alpha_,360);alpha=alpha_*pi/180;%则旋转后的图形的大框的高度和宽度为gd=round(...

2013-12-06 11:39:00 101

转载 用位运算判断一个数能否被3,5,7整除

#include<iostream>using namespace std;void main(){/*判断一个数是否能被3,5,7整除,以及整除的结果*/cout<<"请输入一个数,判断其分别被3,5,7整除的情况:";int a,s;cin>>a;s=((a%3==0?1:0)<<2)|((a%5==0?1:0)<&lt...

2013-05-08 13:58:00 889

转载 C++读写文件

#include<iostream>#include<fstream>#include<sstream>#include<string>#include<algorithm>#include <vector>using namespace std;typedef vector<int> VI;typede...

2013-05-08 13:54:00 84

转载 二叉树的先序、中序、后序遍历和复制

// binary.h // #include"stack.h" char Getdata() {char data; cin>>data; return data;} //Getdata void CreateBiTree(BiTree &T)//建立二叉链表{char ch;...

2013-05-05 16:53:00 279

转载 后缀表达式求值

// zzz.cpp // #include"zzz.h" void evaluation(string s){LinkStack S;InitStack(S);char ch;double a,b;istringstream iss(s);iss>>ch;while(ch!='#'){if(!OpMember(double(ch))) pus...

2013-05-03 17:09:00 111

转载 稀疏矩阵相加

// aaa.h // #include<iostream>using namespace std; typedef struct {int i,j,e;}Triple; typedef struct{Triple data[30];int mu,nu,tu;}TSMtatrix; TSMtatrix Init(TSMtatrix &M)//初始化三...

2013-04-29 11:43:00 164

转载 划分子集问题

// bbb.h // #include<iostream>using namespace std;typedef struct {int * elem;int front;int rear;int queuesize;}sqQueue; void init_sq(sqQueue &q, int maxsize){q.elem=new i...

2013-04-29 11:34:00 147

转载 求取后缀表达式

// hhh.cpp // #include"hhh.h" void transform(char *suffix , string s){LinkStack S;InitStack(S);char ch,c;push_stack(S,'#');istringstream iss(s);iss>>ch;int k=0; //cout<<"...

2013-04-29 11:17:00 78

转载 背包问题

//stack.h// #include<iostream>using namespace std; typedef int ElemType; typedef struct NodeType{ElemType data;NodeType *next;}NodeType,*LinkStack; void InitStack(...

2013-04-29 11:09:00 74

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除