Click here to Skip to main content
15,921,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionKodak Image Edit ActiveX Control?? Pin
nsaadyah20-Sep-03 22:57
nsaadyah20-Sep-03 22:57 
QuestionHow to display Chinese vertically in Opengl Pin
Anonymous20-Sep-03 22:04
Anonymous20-Sep-03 22:04 
QuestionWhy won't this simple thing work? Pin
Pizzaman20-Sep-03 20:58
Pizzaman20-Sep-03 20:58 
AnswerRe: Why won't this simple thing work? Pin
ZoogieZork21-Sep-03 7:42
ZoogieZork21-Sep-03 7:42 
GeneralRe: Why won't this simple thing work? Pin
Pizzaman21-Sep-03 8:10
Pizzaman21-Sep-03 8:10 
AnswerRe: Why won't this simple thing work? Pin
David Crow22-Sep-03 3:21
David Crow22-Sep-03 3:21 
Generalpointers - not updated Pin
JassPZ20-Sep-03 20:24
sussJassPZ20-Sep-03 20:24 
GeneralRe: pointers - not updated Pin
Mike Dimmick21-Sep-03 1:29
Mike Dimmick21-Sep-03 1:29 
*currentGame = *gameIterator;
This makes a copy of the object pointed to by gameIterator. Any changes you then make to currentGame are not reflected in your set tournament->sche->games.

I would suggest
set<Game>::iterator currentGame = 
      tournament->sche->games.begin();
 
startGame( currentGame );
and change the declaration and implementation of startGame to take a set<Game>::iterator instead. You'll then be working directly with your container.

You might need to check the definition of set<>'s member functions to check that it won't produce copies.

By the way, is there some reason you need an ordered unique container of Game objects? I would normally recommend using a list<>, vector<> or deque<> for an arbitrary collection.

Use list if you need to insert or delete from the middle of the list, and you don't need to access elements by index very often. Use vector if you need to be compatible with C arrays, index a lot, don't add or delete in the middle of the container or at the beginning, and rarely add new elements to the end. Use deque if you need to access by index but still need to add or delete in the middle of the container.
GeneralRe: pointers - not updated Pin
Blake Miller22-Sep-03 11:54
Blake Miller22-Sep-03 11:54 
QuestionRemote machine Information??? Pin
maharsoft20-Sep-03 19:49
maharsoft20-Sep-03 19:49 
AnswerRe: Remote machine Information??? Pin
Blake Coverett20-Sep-03 19:59
Blake Coverett20-Sep-03 19:59 
GeneralAPI to capture Login event Pin
rohit.dhamija20-Sep-03 18:50
rohit.dhamija20-Sep-03 18:50 
GeneralRe: API to capture Login event Pin
Mike Dimmick21-Sep-03 1:39
Mike Dimmick21-Sep-03 1:39 
GeneralRe: API to capture Login event Pin
rohit.dhamija21-Sep-03 19:01
rohit.dhamija21-Sep-03 19:01 
GeneralVariant Access Pin
Sirrius20-Sep-03 18:37
Sirrius20-Sep-03 18:37 
GeneralRe: Variant Access Pin
ZoogieZork21-Sep-03 8:00
ZoogieZork21-Sep-03 8:00 
GeneralRe: Variant Access Pin
Sirrius21-Sep-03 17:43
Sirrius21-Sep-03 17:43 
QuestionOld version of C++ 1.32...upgrade? Pin
Matthew Fuchs20-Sep-03 14:49
sussMatthew Fuchs20-Sep-03 14:49 
AnswerRe: Old version of C++ 1.32...upgrade? Pin
Ravi Bhavnani20-Sep-03 16:17
professionalRavi Bhavnani20-Sep-03 16:17 
AnswerRe: Old version of C++ 1.32...upgrade? Pin
David Crow20-Sep-03 16:51
David Crow20-Sep-03 16:51 
AnswerRe: Old version of C++ 1.32...upgrade? Pin
Michael Dunn20-Sep-03 17:23
sitebuilderMichael Dunn20-Sep-03 17:23 
GeneralC help Pin
Sirrius20-Sep-03 13:16
Sirrius20-Sep-03 13:16 
GeneralRe: C help Pin
Stefan Pedersen20-Sep-03 14:12
Stefan Pedersen20-Sep-03 14:12 
GeneralRe: C help Pin
Sirrius20-Sep-03 14:17
Sirrius20-Sep-03 14:17 
GeneralRe: C help Pin
Stefan Pedersen20-Sep-03 15:38
Stefan Pedersen20-Sep-03 15:38 

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.