Using vector
来源:互联网 发布:python 抓取网络数据 编辑:程序博客网 时间:2024/06/06 19:26
1、定义结构体
class vacation //jiao
{
public:
AnsiString vname;
AnsiString vdate;
int status;
};
2、定义vector
std::vector<vacation*> m_vacationDate;
3、读取
vacation *pTemp=NULL;
pTemp = new vacation();
if (NULL == pTemp)
{
return false;
}
for (std::vector<vacation *>::iterator it=m_vacationDate.begin();it<m_vacationDate.end();++it)
{
pTemp=*it;
AnsiString aDate1=pTemp->vdate;
}
4、放数据
vacation *pVacation=NULL;
pVacation = new vacation();
if (NULL == pVacation)
{
return false;
}
pVacation->vdate=FormatDateTime("yyyy-mm-dd",startdate);
m_vacationDate.push_back(pVacation);
0 0
- Using vector
- Using STL - vector
- vector/using namespace std
- implementation of Vector (using C++)
- using vector to implement buffer
- USING VECTOR IMAGES IN XCODE 6
- 木块问题 (using std::vector) UVA
- Effective STL 18 avoid using vector<bool>
- Extractive Summarization using Continuous Vector Space Models
- Draw vector picture using Javasc…
- Assertion Failure When Sorting STL Vector using Custom Predicate
- Vehicle tracking using a support vector machine vs. YOLO
- 14. 66. 2. 用Vector存储JTree的值 Using Vector to store JTree values
- vector
- vector
- Vector
- Vector
- vector
- eclipse优化
- java中static的用法
- android 调用系统界面
- MFC使用控制台
- 黑么程序员(五)集合中set和list集合之间的特点以及特别用法
- Using vector
- CSDN乐知学院网站改版了 http://study.csdn.net/
- 机房收费系统总结一:分析与设计
- 使用Hibernate需要导入的一些JAR包
- 混叠(Aliasing)
- 第五周 项目1 三角形类的构造函数 1
- 编程面试题一
- 北灵境中
- 只复制目录结构 (copied)