c++中的容器在vc中和在c++builder中的不同

下面乱七八糟的程序中,注释了的在vc中就同不过,在c++builder却可以,真郁闷,

int main(int argc, char* argv[])
{
        vector<int> ivec;
        for(vector<int>::size_type ix=0;ix!=10;++ix)
                ivec.push_back(ix*2);
        list<int> ilist(ivec.begin(),ivec.end());
 // deque<int> idque(ilist.begin(),ilist.end()); //error,why?
        for(list<int>::iterator iter = ilist.begin();iter!=ilist.end();++iter)
                cout<<*iter<<" ";
                cout<<endl;
     /*error again, but not in the c++builder   
  char *words[]={"lichen","chenshuang","zhangyu","huopi","shibushi"};
  size_t word_size = sizeof(words)/sizeof(char*);
  vector<string> svec(words,words+word_size);
  */
    int ai[]={1,2,3,4,5,6,7,8};
    vector<int> ivec1(ai,ai+8);
  if(find_val(ivec.begin(),ivec.end(),3))
   cout<<"find!"<<endl;
        return 0;

Bounds 函数 输入上下高宽返回一个矩形结构。 CollectionsEqual 函数 比较两个TCollection是不是相等。 CurrentGroup 变量 FindClass 函数 从输入字符串返回一个从TPersistent继承的类 FindGlobalComponent 变量 返回一个最高阶的容器类。 GetClass 函数 返回一个已经注册了的从TPersistent继承的类 LineStart 函数 返回下一行的开始字符位置 ObjectBinaryToText 过程 转换对象的二进制流形式到文件。 ObjectResourceToText 过程 转换对象的二进制资源到文件。 ObjectTextToBinary 过程 转换保存对象的文件形式到二进制流。 ObjectTextToResource 过程 转换保存对象的文件形式到资源。 Point 函数 输入X,y坐标返回一个点结构。 ReadComponentRes 函数 从窗口资源读出一个控件和她的属性。 ReadComponentResEx 函数 同上 ReadComponentResFile 函数 从窗口资源文件读出一个控件和她的属性。 Rect 函数 输入上下左右返回一个矩形结构 RegisterClass 过程 注册一个从TPersistent继承的类,使她的类的类型能够被识别。 RegisterClassAlias 过程 注册一个和另一个除了名字外都相同的类。 RegisterClasses 过程 注册一组类 RegisterComponents 过程 注册一组控件 RegisterIntegerConsts 过程 RegisterNoIcon 过程 注册一组没有图标的控件 RegisterNonActiveX 过程 防止一组控件被ActiveX wizard识别。 UnregisterClass 过程 反注册一个类 UnregisterClasses 过程 反注册一组类 UnregisterModuleClasses 过程 反注册定义在模块的所有的类 WriteComponentResFile 过程 写控件和她的属性到文件。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值