inplace

Is there an easy way to sort an array of char*'s ? C++

I've got an array of char*'s in a file. The co. I work for stores data in flat files.. Sometimes the data is sorted, but sometimes it's not. I'd like to sort the data in the files. Now I could write the code to do this, from scratch. Is there an easier way? Of course an inplace sort would be the best option. But I'll consider all o...

why in place merge sort not stable?

Possible Duplicate: why is in place merge sort not stable? I wrote a simple implementation that is very similar to normal merge sort (using additional memory) but adds complexity. I don't understand why in place merge sort is not stable. The behavior is the same as merge sort. See the blow implementation: /** class for In plac...

How to sort in-place using the merge sort algorithm?

I know the question is not too specific. All I want is someone to tell me how to convert a normal merge sort into an in-place merge sort (or a merge sort with constant extra space overhead). All I can find (on the net) is pages saying "it is too complex" or "out of scope of this text". The only known ways to merge in-place (with...

Own "in-place activation" OLE Server

Hello, I just want to create my own OLE server, which support in-place activation. e.g. In TOlecontrol we can do following: OleContainer1.CreateObject('WORD.Document',FALSE); That is ok. Word document is embeded into the main application form. But when I tried: OleContainer1.CreateObject('Server.MyOleServer',FALSE); MyOleServer is...