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   | 
		 
		
			
				
				
				
					
						  
						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 #15390 is a reply to message #15385] | 
			Sat, 19 April 2008 18:30   | 
		 
		
			
				
				
				
					
						  
						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 
		
		
		
 |  
	| 
		
	 | 
 
 
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 04:28:53 CET 2025 
 Total time taken to generate the page: 0.06231 seconds 
 |