15,901,373 members
Home / Discussions / ATL / WTL / STL

# ATL / WTL / STL

 Re: boost::regex_match Meisterzunge24-Apr-11 6:39 Meisterzunge 24-Apr-11 6:39
 Re: boost::regex_match Stephen Hewitt25-Apr-11 19:01 Stephen Hewitt 25-Apr-11 19:01
 Re: boost::regex_match Stephen Hewitt25-Apr-11 19:23 Stephen Hewitt 25-Apr-11 19:23
 Re: boost::regex_match Meisterzunge26-Apr-11 5:06 Meisterzunge 26-Apr-11 5:06
 Re: boost::regex_match Stephen Hewitt27-Apr-11 5:52 Stephen Hewitt 27-Apr-11 5:52
 Re: boost::regex_match Meisterzunge28-Apr-11 6:06 Meisterzunge 28-Apr-11 6:06
 Re: boost::regex_match Stephen Hewitt29-Apr-11 4:57 Stephen Hewitt 29-Apr-11 4:57
 resize multiple dimensional vector array in while loop cy163@hotmail.com19-Apr-11 5:03 cy163@hotmail.com 19-Apr-11 5:03
 Hi ALL, outside a while loop, I declare a 3-D vector array ```vector Psodu; Psodu.reserve(10); vector > > structPersonVar(2, vector >(2,Psodu)); ``` in the while loop, i have to change the size of the array in every iteration. First, I use the following code to release the memory ```
for(int j=0; j < 2; j++)
{
for(int k =0; k < 2; k++)
{
vector().swap(structPersonVar[j][k]);
}
vector >().swap(structPersonVar[j]);
}

vector > >().swap(structPersonVar);

``` Then, I resize the array ```structPersonVar.resize(20); for(j=0; j < 12; j++) { structPersonVar[j].resize(2); for(int k =0; k < 2; k++) { structPersonVar[j][k].reserve(10); } } ``` I am not very sure whether i am correct by doing in this way,though it works fine with testing program.
 How to resize multiple dimensional vector array [modified] cy163@hotmail.com18-Apr-11 4:46 cy163@hotmail.com 18-Apr-11 4:46
 Re: How to resize multiple dimensional vector array Cool_Dev18-Apr-11 22:50 Cool_Dev 18-Apr-11 22:50
 Size of executable doubles since Windows Update on April 14, 2011 Big Art16-Apr-11 12:31 Big Art 16-Apr-11 12:31
 Re: Size of executable doubles since Windows Update on April 14, 2011 barneyman22-Apr-11 0:11 barneyman 22-Apr-11 0:11
 Re: Size of executable doubles since Windows Update on April 14, 2011 Big Art22-Apr-11 17:05 Big Art 22-Apr-11 17:05
 Re: Size of executable doubles since Windows Update on April 14, 2011 Hans Dietrich26-Apr-11 8:06 Hans Dietrich 26-Apr-11 8:06
 Re: Size of executable doubles since Windows Update on April 14, 2011 Big Art1-Jul-11 10:51 Big Art 1-Jul-11 10:51
 Re: Size of executable doubles since Windows Update on April 14, 2011 Hans Dietrich1-Jul-11 14:25 Hans Dietrich 1-Jul-11 14:25
 Problem creating instance using com smart pointer. Dhadhan13-Apr-11 18:35 Dhadhan 13-Apr-11 18:35
 how can I draw one Line in different windows？ caiguosen11-Apr-11 4:00 caiguosen 11-Apr-11 4:00
 Re: how can I draw one Line in different windows？ Richard MacCutchan11-Apr-11 4:20 Richard MacCutchan 11-Apr-11 4:20
 Windows Media Player Plugin - Property Page Issue dexter7505-Apr-11 18:56 dexter750 5-Apr-11 18:56
 Handling LVN_DELETEITEM in CListViewCtrl subclass Philipp Kursawe29-Mar-11 21:09 Philipp Kursawe 29-Mar-11 21:09
 Usage of reference Krishnakumartg29-Mar-11 1:42 Krishnakumartg 29-Mar-11 1:42
 Re: Usage of reference Richard MacCutchan29-Mar-11 3:22 Richard MacCutchan 29-Mar-11 3:22
 Re: Usage of reference Krishnakumartg29-Mar-11 6:12 Krishnakumartg 29-Mar-11 6:12
 Re: Usage of reference Richard MacCutchan29-Mar-11 6:25 Richard MacCutchan 29-Mar-11 6:25
 Last Visit: 31-Dec-99 18:00     Last Update: 19-May-24 13:49 Refresh ᐊ Prev1...57585960616263646566 Next ᐅ

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.