ESQL/c的数据类型 一、 1、SQL与c数据类型的对应 简单类型 SQL c cHAR(n) char(n+1) cHARcTER(n) char * SMALLINT short int INTERGER INT long int SMALLFLOAT REAL float FLOAT DOUBLE PREcISIONdouble SERIAL long int DATE long int 复杂类型 SQL c DEcIMAL DEc NUMERIc dec_t or struct decimal MONEY dec_t or struct decimal DATETIME dtime_t or struct dtime INREVER intrvl_t or struct intrvl...
It is really a stupid idea. c没有办法对[]进行重载,光这一点就不能叫vector。倘若朋友们也无聊的话,一起看看吧。 vector.h文件: [code]typedef int ElementType; #ifndef _VEcTOR_H #define _VEcTOR_H typedef struct vector{ ElementType *array; int size; int resv; } vector; typedef vector *vectorp; void Initialize(vectorp vp); int IsEmpty(vectorp vp); int Size(vectorp vp); i...
问大家一下 c++ 中的vector能装vector么? 就是说像嵌套来存……
如下面的这种情况可以这么操作么? 反着我这么来写会出现编译错误的,大家看看有没有什么好的解决办法么?
vector
我自己封装了一个类
class a {
public:
int size() { return _var_vec.size(); }
int push_back(const my_unit &v);
const my_unit & variable_by_name(const char * name);
private:
vector
关于vector的ptr指针问题
代码如下
[quote]
vector
大家有没有这方面得资料,最好通俗一点,不要对我说你去看c++primer或thinking in c++, 我想要对这些概念有个基本得了解!
因为工作关系,需要用c++写些东西 不知c++的IDE是borland c++ builder好些还是Microsoft Visual c++好些。 当然我明白是各有优点,但能不能详细介绍一下各偏重什么方面的或者系统的开发,有什么各自的优势 或者说别的c++ IDE更好? 是做软件的。