06 2013 档案
摘要:1 cv::Mat cv::Mat是一个n维矩阵类,声明在中。class CV_EXPORTS Mat{public: //a lot of methods …/*! includes several bit-fields: - the magic signature - continuity flag - depth - number of channels */ int flags; //! the matrix dimensionality, >= 2 int dims; //! ...
阅读全文
摘要:string类的构造函数:string(const char *s); //用c字符串s初始化string(int n,char c); //用n个字符c初始化string类的字符操作:const char &operator[](int n)const;const char &at(int n)const;char &operator[](int n);char &at(int n);operator[]和at()均返回当前字符串中第n个字符的位置,但at函数提供范围检查,当越界时会抛出out_of_range异常,下标运算符[]不提供检查访问。const c
阅读全文
摘要://MDLL.h#include "If.h"typedef struct _SS{ int a; int b;}SS;class CMDLL :public IfC{public: CMDLL(void); int a() { SS s; x=30; s.a=10; return s.a; } int b() { return 20; } int hh;};//Fa.h#include "If.h"class MDLL_API CFa{public:CFa(void);~C...
阅读全文