Forum: C# Jul 3rd, 2009 |
| Replies: 10 Views: 717 Solved it! It was the List<T> object. adatapost was partialy wright: I was adding the same instance of that object (but why where there only 9s?), but using new to generate new instances determins... |
Forum: C# Jul 3rd, 2009 |
| Replies: 10 Views: 717 You're wrong, the function executes fine. It's easy to see if you uncomment the code at line 34, or simply if you add a breake point at line 35, to see the full array.
The problem doesn't seem... |
Forum: C# Jul 3rd, 2009 |
| Replies: 10 Views: 717 The Count is 362880. It successfully adds all the permutations, but when the algorithm is over, theList is a list of 362880 {9 9 9 9 9 9 9 9 9} elements. |
Forum: C# Jul 3rd, 2009 |
| Replies: 10 Views: 717 Hello. I am writing a program that uses a List<T> object to retain a list of int[] objects.
private int[] numbers = new int[9];
private List<int[]> theList = new List<int[]>();
It's... |