vector的简单使用示例

时间:2015-09-13 17:45:21
【文件属性】:
文件名称:vector的简单使用示例
文件大小:308KB
文件格式:RAR
更新时间:2015-09-13 17:45:21
vector 示例 typedef struct { char name[10]; int advtg; int c_revenue; int d_revenue; } T_Choice; typedef vector CtnrChoice; typedef CtnrChoice::iterator ItrtChoice; CtnrChoice ctnrChoice; int c_revenue = 0; void InputRevenueTable() { T_Choice choice1 = {"Event1", D_ADVTG, 3, 2}; T_Choice choice2 = {"Event2", C_ADVTG, 2, 3}; T_Choice choice3 = {"Event3", N_ADVTG, 1, 1}; ctnrChoice.push_back(choice1); ctnrChoice.push_back(choice2); ctnrChoice.push_back(choice3); assert(ctnrChoice.size()>1); return; } 。。。。。。
【文件预览】:
ChallengeDan
----ChallengeDan.opt(55KB)
----Main()
--------ReadMe.txt(1KB)
--------StdAfx.h(667B)
--------Main.cpp(2KB)
--------Main.plg(1KB)
--------Debug()
--------Main.dsp(4KB)
--------StdAfx.cpp(291B)
----Debug()
----ChallengeDan.dsp(4KB)
----ChallengeDan.positions(410B)
----ChallengeDan.dsw(536B)
----ChallengeDan.ncb(57KB)

网友评论