#include "iostream.h"
#include "string"
#include "list"using std::string;
using std::list;void main ()
{
list<string> test;
list<string>::iterator arr;
//add element
test.push_back("no4");
test.push_back("no5");
test.push_front("no3");
test.push_front("no2");
test.push_front("no1"); test.push_front("**start**");
test.push_back("end"); for(arr = test.begin(); arr != test.end(); ++arr)
{
cout<<*arr<<endl;
}
int a = 0;
cin>>a;
}
#include "string"
#include "list"using std::string;
using std::list;void main ()
{
list<string> test;
list<string>::iterator arr;
//add element
test.push_back("no4");
test.push_back("no5");
test.push_front("no3");
test.push_front("no2");
test.push_front("no1"); test.push_front("**start**");
test.push_back("end"); for(arr = test.begin(); arr != test.end(); ++arr)
{
cout<<*arr<<endl;
}
int a = 0;
cin>>a;
}
解决方案 »
- 兄弟们帮我看下这代码要怎么修改?
- 请大侠们看看这个句子是什么意思啊?
- 想动态的修改SDI的MAINFRM的TITLE,就象WORD的那种打开一个文件就在TITLE上显示文件名那种,如何作
- 读unicode文件问题~~~
- 100分 请问南京趋势科技公司怎么样?
- 各位帅哥,美眉,有没有关于com,com+,corba的好书,介绍一两本给小弟!
- 一般运用程序用的 OCX 和WEB 调用的 OCX有区别吗?
- 如何把视作为对话框的一个子窗口呀?这个视如何创建呀?
- kernel32.dll 出错是为什么呢?
- 加密软件封掉了网口、U口,怎么破开
- 向ListCtrl中添加位图
- 求《深入浅出MFC》的配书光盘代码,多谢!
#include "string"
#include "list"--------------
#include <iostream>
#include <string>
#include <list>