Thread: C program for generating combination

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    3
    hi..
    right now me too is strugling with generating combinations..
    this piece of information is really useful.....
    i understod this logic..
    but the thing is how do i save this combination in an array...
    because i need to do a set of calculations for each combination...
    so i need to save the combination and call each combination individually for the calculations.

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    3
    .5 1 20
    .5 1 40
    .5 1 60
    .5 2 20
    .5 2 40
    .5 2 60
    1.0 1 20
    1.0 1 40
    1.0 1 60
    1.0 2 20
    1.0 2 40
    1.0 2 60

    i need to repeat this till i get 5.0 2 60.
    i have generated the table.
    since the array index and these values are not related.. i am strugling to save this table in a 2 dimentional array.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  2. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  3. Combination program problem
    By Garland in forum C++ Programming
    Replies: 2
    Last Post: 10-10-2007, 03:35 PM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM