Search:

Type: Posts; User: DaleZ

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,514

    I took another crack at it trying various...

    I took another crack at it trying various methods. This time I tried it from left to right instead of right to left.

    this is what I came up with:



    int den = 1; int da = 1; int db = 1;...
  2. Replies
    3
    Views
    1,514

    populate array problem

    I'm working on creating a punnette square.

    output array is a 2d 128 row by 14 (7 pairs) columns ( just for 1 side of the square).
    source is a 1d 7 column array.

    I have it hard coded atm but...
  3. Replies
    2
    Views
    1,896

    Thanks for the tip on instance. I solved it...

    Thanks for the tip on instance.

    I solved it by putting "Main" into a separate class and called "program" from it there.
    This allowed me to access all the other methods.
  4. Replies
    2
    Views
    1,896

    method call error

    I'm getting
    "Error 1 An object reference is required for the non-static field, method, or property 'JWGenetics.Genetics.program()' e:\visual studio 2010\Projects\JWGenetics.cs 50 13 JW Genetics"
    ...
  5. Replies
    1
    Views
    2,689

    nested switch statements error

    I'm getting the control cannot fall through to another case error and I'm not seeing how to fix it. What am I missing?



    public void agouti_color_steel()
    {
    switch...
  6. Thread: list help

    by DaleZ
    Replies
    2
    Views
    1,277

    Thanks. That does what I want.

    Thanks.
    That does what I want.
  7. Thread: list help

    by DaleZ
    Replies
    2
    Views
    1,277

    list help

    I'm doing a punnett square and putting the output into a list.

    I want to compare the output to the list and if exists; update the count in the list.
    I'm new to C# and don't fully understand...
  8. I've looked at permutations. I'm not sure if that...

    I've looked at permutations. I'm not sure if that would do what I want. Total valid combinations is 128.

    This is how I'm doing it now to get the desired results.



    int parent[14]
    int...
  9. how to determine all combinations of array elements

    I'm writing a genetics program working w/7 pairs of genes.



    int parent[14] // comprised of 7 pairs of genes. pairs are 0-1,2-3,4-5,6-7,8-9,10-11,12-13
    int parentdata[128][7] // all...
Results 1 to 9 of 9