When you overwrite a pure virtual function, it has to have the same signature. Otherwise you haven't actually overwritten it, you just have declared an unrelated virtual function.
That's not entirely correct. When you use delete [], the destructors for each individual object are called first. If you replace char and float by car and bike classes, it's obvious that using the...
For the deallocation speed, did you try running your program outside of the IDE? Just open a CMD window, go to the release directory and run it from there. The thing is that Visual Studio since 2003...
I think you are probably having issues with re-entrant code. If I understand your design correctly, multiple connections can be active at any time, so your program is running listeners concurrently....
I'd like to run a design by you and ask on how to implement it. Here is the basic problem:
I have a servelet A that returns full JPG images.
I have a servelet B that returns JPG...
You can simply use next_permutation from STL algorithms. This is an example of how you would use it. The data structures are not the same as yours, but you should be able to adapt that with a...
If you can define your "similarity" mathematically, then you're halfway there. If you can't then you should probably try to find out what you think of when you think of your "similarity". Statistical...
[ moderator note ]
Please leave personal differences aside when posting on a technical forum. This forum is meant for helping with or solving precise questions that are stated by the original...
If you can modify the code a little bit, I would add a function that dumps the vector into a csv file and then open that with Excel. It means that you will have to add the function call to those...
Your program probably crashes because you tried to allocate your array on the stack and the program runs out of stack space. 10 000 x 10 000 = 100 000 000 (i.e. 100 MB). Using this array is probably...
You basically just need cygwin1.dll on the target computer. That is the cygwin part. For the other dependencies, you need the appropriate dlls, just as with any Windows program. So it's not really...