Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Problem when sorting arrays of arrays
Problem when sorting arrays of arrays [message #15383] Fri, 18 April 2008 16:49 Go to next message
cb31_fr is currently offline  cb31_fr
Messages: 5
Registered: April 2007
Promising Member
Hye,

I have a big problem when I want to execute the program attached.

I have a class which contains an array of ElementTable structure :

typedef struct {
long Index ;
Array<long> Element ;
} ElementTable ;
Array<ElementTable> LaTable ;


I initialise my table (LaTable) with some values (see program attached), but after sorting this table, each "Element" array of the ElementTable structure gives me -1 for the GetCount() method.
It seems that each Element array has been cleared !
I don't understand why.

Is there a way to sort arrays which contain arrays ?

Thanks.
(Excuse-me for my english !)

Regards.
Christian
Re: Problem when sorting arrays of arrays [message #15385 is a reply to message #15383] Fri, 18 April 2008 17:21 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
bool Table::TrierTable(const ElementTable& a, const ElementTable& b )


Mirek
Re: Problem when sorting arrays of arrays [message #15390 is a reply to message #15385] Sat, 19 April 2008 18:30 Go to previous message
cb31_fr is currently offline  cb31_fr
Messages: 5
Registered: April 2007
Promising Member
Hye Mirek,

Perfect, it works fine now.
Thanks a lot.

In the same time, I would like to congratulate you (and your friends) for this wonderful tool (Ultimate++).

I have used wxWidgets for several years but, last year, I discovered U++. And now, U++ is my favorite development tool.
For me, U++ is better than wxWidgets (and more easy to use on several points).

Regards
Christian
Previous Topic: Time should contain msecs too
Next Topic: GetHWND() always returns NULL?
Goto Forum:
  


Current Time: Tue Jun 17 14:50:44 CEST 2025

Total time taken to generate the page: 0.05214 seconds