Thanks for the reply.
I can set a breakpoint on the line with the return statement. If I then hit F5 and debug, an exclamation mark temporarily appears on the breakpoints (hovering over which...
Type: Posts; User: seansean49
Thanks for the reply.
I can set a breakpoint on the line with the return statement. If I then hit F5 and debug, an exclamation mark temporarily appears on the breakpoints (hovering over which...
Hi Daved.
It's in Win32 Debug configuration, this console project was created through Empty Project. This is how it traces through the If block in the code above (when foundPos != end):
Hits...
PS
Optimization under C/C++ in the configuration settings is set to: Disabled (/0d)
Hi thanks for the responses.
Salem - I think you may well be correct, it is tracing through the code in certain sections in an unpredictable (and seemingly illogical) manner.
The settings in...
The debugger step over command jumps up and down randomly in the if-else block in the code below. It skips a line, goes back to the top, back down, up again?? I fixed the problem by changing the two...
many thanks
Hi
If I have a pointer to a map container:
map<int, double>* mapPointer = &aMap;
how do I then de-reference the pointer to access a member through its key?
thanks and apologies as I should of spotted that.
Thanks for the help Karas, it now compiles.
Would you be able to explain to me why I need the default constructor, since the component Object had already been initialised when I attempted to add...
Hi
I can't figure out why this short piece is giving an error at the point where I add an element to the map. Any ideas much appreciated, thanks in advance.
#include <map>
using...