[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] changing combination/demo.c
From: |
Rhys Ulerich |
Subject: |
Re: [Help-gsl] changing combination/demo.c |
Date: |
Sun, 16 Dec 2012 23:38:41 -0600 |
> Instead of 0, 1, 2, 3, 4, 5, 6 may be red, green, blue, yellow, black,
white.
>
> Instead of 0, 1, 2, 3, 4, 5, 6 may be 0, 1, 33, 57, 100, 104.
>
> Replacing 0, 1, 2, 3, 4, 5, 6 by a general list of anything
Read the manual sections on the permutation and combination structs. You
can use the indices stored in the data struct member to index into any
array you want. For example, you could use it to index into an array of
color names.
- Rhys