![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++/MFC
bh20077
这个作者很懒,什么都没留下…
展开
-
函数返回引用和指针类型
新博客地址:http://gorthon.sinaapp.com/ #include #include #include char *g() { char p[]="heel"; return p; } void main() { char *str=g(); cout<<*str<<endl; printf("printf/n"); cout<<*str<<endl; }原创 2011-05-27 10:50:00 · 834 阅读 · 0 评论 -
pythonchallenge 【第3题】
新博客地址:http://gorthon.sinaapp.com/ http://www.pythonchallenge.com/pc/def/equality.html 这个题目的意思一直没有明白…… 其实是这样的,如rRSHpSDBi这样中间的那个p就是要找的字母。 import urllib2,re f=urllib2.urlopen('http://www.pythonchal原创 2011-05-27 00:17:00 · 947 阅读 · 0 评论 -
pythonchallenge 【第2题】
新博客地址:http://gorthon.sinaapp.com/ http://www.pythonchallenge.com/pc/def/ocr.html 先查看源码,得到那个长的客串 >>> import string >>> a = """%%$@_$^__#)^)&!_+]!*@&^}@[@%]()%+mce_marker[(_……""" # 后面省略 >>> ''.join([原创 2011-05-27 00:15:00 · 681 阅读 · 0 评论 -
ubuntu中c++调用python
新博客地址:http://gorthon.sinaapp.com/ 先写一个test.cpp: #include int main(int argc, char **argv) { Py_Initialize(); PyRun_SimpleString("import sys"); PyRun_SimpleString("sys.path.appe原创 2011-05-03 12:31:00 · 1488 阅读 · 0 评论 -
mvfast 自适应搜索
新博客地址:http://gorthon.sinaapp.com/ 要装opencv库 //main.cpp #include"mvfast.h" void main() { IplImage *prev = NULL, *curr = NULL; IplImage *grayA = NULL,*grayB = NULL;//只分配图像头 prev = cvLoadImage("b原创 2011-01-15 21:41:00 · 801 阅读 · 0 评论 -
C++模拟Python功能【二】
新博客地址:http://gorthon.sinaapp.com/ 新博客地址:http://gorthon.sinaapp.com/ // file:function.h // author: shuji // bh2#qq.com #ifndef __PYTHON__FUNCTION__H__ #define __PYTHON__FUNCTION__H__ #inclu原创 2011-12-26 13:04:26 · 950 阅读 · 0 评论 -
【转载】C++:STL标准入门汇总
新博客地址:http://gorthon.sinaapp.com/ 作者:施杨(施杨's Think out) 出处:http://shiyangxt.cnblogs.com 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 学无止境!!! 第一部分:(参考转载 2011-11-19 10:47:00 · 851 阅读 · 0 评论 -
pythonchallenge 【第1题】
新博客地址:http://gorthon.sinaapp.com/ http://www.pythonchallenge.com/pc/def/274877906944.html >>> a = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddga原创 2011-05-27 00:10:00 · 818 阅读 · 0 评论 -
pythonchallenge 【第0题】
新博客地址:http://gorthon.sinaapp.com/ 1: http://www.pythonchallenge.com/pc/def/0.html >>> 2 ** 38 274877906944L >>> 或者: >>> 1 274877906944L >>> 或者: >>> pow(2, 38) 274877906944L >>>原创 2011-05-27 00:07:00 · 848 阅读 · 0 评论 -
C++模拟Python功能【一】
新博客地址:http://gorthon.sinaapp.com/ Python的模块实在是好用,可是在C++里面却经常找不到相应的功能,于是想着进行简单的模拟。 (模拟的不好,但是基本能用,欢迎拍砖) 首先从random模块开始: 对于choice和sample函数只实现了string的模拟。其中sample跟Python的有点差异,我这里实现的sample的采样大小可以大于原seque原创 2011-12-14 23:12:07 · 1059 阅读 · 0 评论 -
HCM硬性K均值聚类算法 C++实现 【字幕检测、车牌识别】
新博客地址:http://gorthon.sinaapp.com/ 最初写的乱七八糟的代码,当初没有用STL,哎。 /*********************************************************************** HCM聚类算法: feature[]为样本点向量//原创 2011-11-28 11:01:43 · 2100 阅读 · 2 评论 -
MFC实现python中的split功能
新博客地址:http://gorthon.sinaapp.com/ void FunctionPy::split(const CString src, vector &dest, const CString division) { CString src_copy(src); int sep_length = division.GetLength(); for (in原创 2011-05-29 21:08:00 · 1486 阅读 · 0 评论 -
大众车标识别
在这里查看详细:http://gorthon.sinaapp.com/article/home/100062原创 2012-11-01 22:18:02 · 2058 阅读 · 0 评论