Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: need help with excel version problem Pin
jashimu5-Oct-09 9:13
jashimu5-Oct-09 9:13 
GeneralRe: need help with excel version problem Pin
Eddy Vluggen5-Oct-09 10:54
professionalEddy Vluggen5-Oct-09 10:54 
GeneralRe: need help with excel version problem Pin
jashimu6-Oct-09 5:28
jashimu6-Oct-09 5:28 
AnswerRe: need help with excel version problem Pin
Dave Kreskowiak5-Oct-09 8:51
mveDave Kreskowiak5-Oct-09 8:51 
Questionfind all possible combinations in a List < List < int > > [modified] Pin
cechode5-Oct-09 7:29
cechode5-Oct-09 7:29 
JokeRe: find all possible combinations in a List < List < int > > Pin
Luc Pattyn5-Oct-09 7:41
sitebuilderLuc Pattyn5-Oct-09 7:41 
GeneralRe: find all possible combinations in a List < List < int > > Pin
cechode5-Oct-09 7:58
cechode5-Oct-09 7:58 
GeneralRe: find all possible combinations in a List < List < int > > Pin
Ian Shlasko5-Oct-09 9:04
Ian Shlasko5-Oct-09 9:04 
Ok... As a warning, my brain is a little lopsided today... Here's the first weird idea that popped into my head... Partly in pseudocode, and haven't tried it out, but here ya go...
private IEnumerable<List<int>> Test(List<List<int>> data)
{
     int numDigits = data.Count;
     int lastCount = data[numDigits - 1].Count;
     int[] indices = new int[data.Count];
     while (indices[numDigits - 1] < lastCount)
     {
          //yield return a list composed of data[0][indices[0]], data[1][indices[1]], ...
          
          indices[0]++;
          for (int idx = 0; idx < numDigits - 1; idx++)
          if (indices[idx] == data[idx].Count)
          {
              indices[idx] = 0;
              indices[idx + 1]++;
          }
      }
}


Bit of a different angle from what you're trying... Instead of going for recursion, think of it like a series of digits. What this really does is count through the following sequence (Assuming all of your arrays have 3 digits):

000, 100, 200,
010, 110, 210,
020, 120, 220,
001, 101, 201... etc

And it forms results such that, for example, 120 = the second, third, and first digits of the elements, respectively...

Anyway, you get the idea. If you know for a fact that you'll be dealing with 3-digit inner lists, you can simplify this a bit...

Proud to have finally moved to the A-Ark. Which one are you in?
Developer, Author (Guardians of Xen)

QuestionSetup Project help Pin
Etienne_1235-Oct-09 5:43
Etienne_1235-Oct-09 5:43 
AnswerRe: Setup Project help Pin
Etienne_1235-Oct-09 7:15
Etienne_1235-Oct-09 7:15 
QuestionI need to move from google search result soap to search result html parser, any help? Pin
Yasser Ahmad5-Oct-09 4:43
Yasser Ahmad5-Oct-09 4:43 
QuestionClipboard.Clear() cause Excel Crashes at startup Pin
Delven Foo5-Oct-09 4:40
Delven Foo5-Oct-09 4:40 
AnswerRe: Clipboard.Clear() cause Excel Crashes at startup Pin
Luc Pattyn5-Oct-09 6:10
sitebuilderLuc Pattyn5-Oct-09 6:10 
GeneralRe: Clipboard.Clear() cause Excel Crashes at startup Pin
Delven Foo5-Oct-09 6:27
Delven Foo5-Oct-09 6:27 
GeneralRe: Clipboard.Clear() cause Excel Crashes at startup Pin
Luc Pattyn5-Oct-09 6:47
sitebuilderLuc Pattyn5-Oct-09 6:47 
GeneralRe: Clipboard.Clear() cause Excel Crashes at startup Pin
Delven Foo5-Oct-09 7:19
Delven Foo5-Oct-09 7:19 
GeneralRe: Clipboard.Clear() cause Excel Crashes at startup Pin
Richard MacCutchan5-Oct-09 7:33
mveRichard MacCutchan5-Oct-09 7:33 
Generalno crash Pin
Luc Pattyn5-Oct-09 7:34
sitebuilderLuc Pattyn5-Oct-09 7:34 
QuestionKey Press Event : ctrl + C Pin
bonzaiholding5-Oct-09 4:19
bonzaiholding5-Oct-09 4:19 
AnswerRe: Key Press Event : ctrl + C Pin
DaveyM695-Oct-09 4:35
professionalDaveyM695-Oct-09 4:35 
GeneralRe: Key Press Event : ctrl + C Pin
bonzaiholding5-Oct-09 5:00
bonzaiholding5-Oct-09 5:00 
QuestionCrystal Report Plug-ins Pin
satsumatable5-Oct-09 4:02
satsumatable5-Oct-09 4:02 
Questionhelp in updating ms acess is needed! Pin
TGiril5-Oct-09 2:52
TGiril5-Oct-09 2:52 
AnswerRe: help in updating ms acess is needed! Pin
Henry Minute5-Oct-09 3:49
Henry Minute5-Oct-09 3:49 
GeneralRe: help in updating ms acess is needed! Pin
TGiril5-Oct-09 19:52
TGiril5-Oct-09 19:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.