【题目】
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
【题意】
给定一个nXn的二维矩阵,按时钟方向旋转90度,不能使用额外的数据结构
【思路】
从外向内逐层旋转...
分类:
其他好文 时间:
2014-05-26 05:50:25
阅读次数:
266
按先序序列输入字符序列(其中逗号表示空节点),输出该二叉树的层次遍历序列。
#include
#define END ','//表示空节点
using namespace std;
typedef char Elem_Type;
typedef struct BiTree
{
Elem_Type data;
struct BiTree *Lchild;
stru...
分类:
其他好文 时间:
2014-05-26 04:53:07
阅读次数:
261
图像的输入输出
C风格的操作:
const char *pstrImageName = "秽土转生第七版.jpg";
const char *pstrWindowsTitle = "窗口标题";
//从文件中读取图像
IplImage *pImage = cvLoadImage(pstrImageName, CV_LOAD_IMAGE_UNCHANGED);
//创建窗口
cvN...
分类:
其他好文 时间:
2014-05-26 03:47:36
阅读次数:
296
例1: 批量 查询部门号为 "10" 号的并把它们打印出来 . DECLARE TYPE
emp_table_type IS TABLE OF my_emp%ROWTYPE INDEX BY BINARY_INTEGER; v_emp_table
emp_table_type;BEGIN SELE....
分类:
数据库 时间:
2014-05-26 01:26:47
阅读次数:
356
SQL
SERVER存储过程语法:CreatePROC[EDURE]procedure_name[;number][{@parameterdata_type}[VARYING][=default][OUTPUT]][,...n]
[WITH{RECOMPILE|ENCRYPTION|RECOMPI....
分类:
数据库 时间:
2014-05-25 23:39:01
阅读次数:
392
OFBize WebService 跑起来了,用Soapui 测试正常。
在C# 中调用,
参考文章:http://blog.csdn.net/lorinzhang/article/details/6339380
同样使用其 http post 方法,返回的是失败报文。
迷惑中,使用rawcap 抓包分析,发现Soapui 的包
Content-Type: text/xml;chars...
分类:
Web程序 时间:
2014-05-25 12:59:46
阅读次数:
301
function imgto=color_mark(img, diam,color_to )
%UNTITLED2 Summary of this function goes here
% img is input image which is a rgb image
% diam is a pixel scale in image [208,313,375,705]; [208 313...
分类:
其他好文 时间:
2014-05-25 09:46:14
阅读次数:
1632
gunzip -r hongchangfirst/data
如何递归删除那些剩余的非log结尾的文件?
先列出确认一下:
find hongchangfirst/data -type f ! -name "*.log"
然后真正的删除:
find hongchangfirst/data -type f ! -name "*.log" -exec rm -f {} \;...
分类:
系统相关 时间:
2014-05-25 09:41:05
阅读次数:
694
Android DIP: Device-independent Pixel Graphics Design How Android Supports Device Displays: UI Design and UX Device Display Concepts: Size, Density, Orientation, DIP size Type small,normal,large,...
分类:
移动开发 时间:
2014-05-25 07:28:50
阅读次数:
458
自定义的tabbaritem图片比系统的高出一截来Solution:self.tabbar.tabBar.layer.masksToBounds=YES;//边界隐藏但是由于设置masksToBounds属性为true所以Layer的阴影效果也就没有了
分类:
其他好文 时间:
2014-05-24 15:32:32
阅读次数:
179