Click here to Skip to main content
15,908,254 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionhow to use max_element with a vector Pin
s196675m5-Oct-07 13:21
s196675m5-Oct-07 13:21 
AnswerRe: how to use max_element with a vector Pin
John R. Shaw6-Oct-07 0:27
John R. Shaw6-Oct-07 0:27 
QuestionMessage handling Pin
_tasleem5-Oct-07 11:13
_tasleem5-Oct-07 11:13 
QuestionProblem with DispEventAdvise Pin
sandeepkavade4-Oct-07 18:50
sandeepkavade4-Oct-07 18:50 
AnswerRe: Problem with DispEventAdvise Pin
Stuart Dootson4-Oct-07 21:48
professionalStuart Dootson4-Oct-07 21:48 
QuestionWhich DWebBrowserEvents2 function is called when we Rrefresh a webpage Pin
Dhiraj kumar Saini4-Oct-07 1:56
Dhiraj kumar Saini4-Oct-07 1:56 
QuestionAdding a dialog in resource as child window at runtime? Pin
Gyan Prakash3-Oct-07 21:44
Gyan Prakash3-Oct-07 21:44 
QuestionVector Pin
mcsherry3-Oct-07 5:17
mcsherry3-Oct-07 5:17 
Hi,

I currently use a vector to store a set of records. However there is now a limit to the number of elements the vector contains and once it is filled we have to remove the first element and insert the new one at the back. But as an added complication we aren't allowed any dynamic memory allocation so what needs to be done is:
1) Remove first element from list but do not free it's memory
2) overwrite the removed elements data with the new data
3) insert the updated element to the end of the vector

What is the best way to do this? I am not limited to only storing the data in a vector so if any other containers are more suitable then let me know!

TIA,
AnswerRe: Vector Pin
Chris Losinger3-Oct-07 5:36
professionalChris Losinger3-Oct-07 5:36 
GeneralRe: Vector Pin
mcsherry3-Oct-07 5:47
mcsherry3-Oct-07 5:47 
GeneralRe: Vector Pin
mcsherry3-Oct-07 5:54
mcsherry3-Oct-07 5:54 
GeneralRe: Vector Pin
Chris Losinger3-Oct-07 6:11
professionalChris Losinger3-Oct-07 6:11 
GeneralRe: Vector Pin
Nemanja Trifunovic3-Oct-07 7:47
Nemanja Trifunovic3-Oct-07 7:47 
AnswerRe: Vector Pin
Nathan Holt at EMOM3-Oct-07 11:10
Nathan Holt at EMOM3-Oct-07 11:10 
AnswerRe: Vector Pin
John R. Shaw6-Oct-07 0:55
John R. Shaw6-Oct-07 0:55 
QuestionHow to detect page refresh in vc++ Pin
rindam3-Oct-07 3:19
rindam3-Oct-07 3:19 
Questionsending sms through aspx.cs code in c# Pin
sh_india61@yahoo.com3-Oct-07 2:39
sh_india61@yahoo.com3-Oct-07 2:39 
AnswerRe: sending sms through aspx.cs code in c# Pin
vadivelub7-Apr-09 5:07
vadivelub7-Apr-09 5:07 
QuestionString problem Pin
david bagaturia1-Oct-07 22:19
david bagaturia1-Oct-07 22:19 
AnswerRe: String problem Pin
Jonas Larsson2-Oct-07 0:49
Jonas Larsson2-Oct-07 0:49 
GeneralRe: String problem Pin
david bagaturia2-Oct-07 3:38
david bagaturia2-Oct-07 3:38 
GeneralRe: String problem Pin
Stephen Hewitt2-Oct-07 4:43
Stephen Hewitt2-Oct-07 4:43 
GeneralRe: String problem Pin
Jonas Larsson2-Oct-07 21:58
Jonas Larsson2-Oct-07 21:58 
GeneralRe: String problem Pin
david bagaturia3-Oct-07 0:03
david bagaturia3-Oct-07 0:03 
AnswerRe: String problem Pin
John R. Shaw6-Oct-07 1:04
John R. Shaw6-Oct-07 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

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