
C++
文章平均质量分 50
AlejandroSeaah
这个作者很懒,什么都没留下…
展开
-
C++文件操作
文件文件的基本概念 所谓“文件”是指一组相关数据的有序集合。 这个数据集有一个名称,叫做文件名。 实际上在前面的各章中我们已经多次使用了文件,例如源程序文件、目标文件、可执行文件、库文件 (头文件)等。文件通常是驻留在外部介质(如磁盘等)上的, 在使用时才调入内存中来。从不同的角度可对文件作不同的分类。从用户的角度看,文件可分为普通文件和设备文件两种。 普通文件是指驻留在磁盘或转载 2013-07-21 15:07:38 · 484 阅读 · 0 评论 -
C/C++ ifstream之eof() 对最后字符读双次的问题
http://blog.youkuaiyun.com/rebel_321/article/details/4927464用ifstream的eof(),竟然读到文件最后了,判断eof还为false。网上查找资料后,终于解决这个问题。参照文件:http://tuhao.blogbus.com/logs/21306687.html 在使用C/C++读文件的时候,一定都使用过eof()这个函数来转载 2013-08-02 23:39:49 · 1371 阅读 · 0 评论 -
c++ I/O
对于以下输入:8 23 246795程序A:#includeusing namespace std;int main(){ while(fin>>k) coutreturn 0;}显示结果是:8 23 246795程序B的结果跟A一样,不过是从文件verto原创 2013-08-03 15:50:43 · 570 阅读 · 0 评论 -
OpenCV学习——眼部识别算法实现
http://blog.youkuaiyun.com/gnuhpc/article/details/4362233论文下载地址:http://www.cs.bu.edu/techreports/pdf/2005-012-blink-detection.pdf 程序介绍: This system is the enhancement of my previous Eye Tracki转载 2013-10-31 15:41:47 · 1444 阅读 · 0 评论 -
opencv人眼检测识别
#include "cv.h"#include "highgui.h"#include #includeusing namespace std;void detectEyes(IplImage *img){ CvMemStorage* storage = 0; storage =cvCreateMemStorage(0) ;转载 2013-10-31 15:25:55 · 1449 阅读 · 0 评论 -
quick sort 算法 的C++实现
#include#includeusing namespace std;int partition(vector &A,int left,int right){ int pivot=A[left]; int pl=left; int pr=right; while(pl<pr){ while(pl<pr&&A[pl]<pivot) pl++; while(plpivot) pr--; swap(A原创 2014-11-02 01:01:23 · 503 阅读 · 0 评论 -
quick sort 的C++正确实现
#include#includeusing namespace std;int partition(vector &A,int left,int right){ int pivot=A[left]; int pl=left; int pr=right; while(pl while(pl pl++;原创 2014-11-02 00:59:42 · 630 阅读 · 0 评论