Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > 其他操作系统 > aCC+List
【标  题】:aCC+List
【关键字】:aCC+List
【来  源】:http://blog.chinaunix.net/article.php?articleId=18076&blogId=4353

aCC+List

Your Ad Here

采用List容器类,写的第二个STL演示程序.之后准备往其中填入自己的对象.

#include <iostream>
#include <string>
#include <list>
namespace std {} using namespace std;
int main()
{
  string *myword;
  myword=new string("List is:");
  cout<< myword->c_str()<<endl;
  delete myword;
  list<int> L;
  L.push_back(0);
  L.push_front(1);
  L.insert(++L.begin(), 2);
  copy(L.begin(), L.end(), ostream_iterator<int>(cout, " "));
  cout<<endl;
  return 0;
}

HP-UX11配置全过程:【上一篇】
研究一下STL for aCC:【下一篇】
【相关文章】
没有相关文章
【随机文章】
  • 把防火墙的知识总结一下:
  • Bindows | chapter one
  • JAVAScript 中的存放常量的文件adojavas.inc
  • 五笔输入通1.x注册算法分析 (10千字)
  • Linux下的高可用性方案研究
  • viruse,threat,risk,vulnerability definition
  • cisco文件系统经典配置
  • 一个实用的防火墙配置范例
  • ASP的自定义实用函数表(1)
  • ASP 开发准则
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.