Search:

Type: Posts; User: cooper1200

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,647

    isnt rms 0.707ie sine of 45 degrees

    isnt rms 0.707ie sine of 45 degrees
  2. Replies
    5
    Views
    1,706

    because the condition above evaluates to true so...

    because the condition above evaluates to true
    so that condition isn't tested
  3. Replies
    5
    Views
    1,706

    there is a big difference between if ( x ==...

    there is a big difference between


    if ( x == 1 )
    do something

    if ( x == 2 )
    do something
    if .......
  4. Is it possible that as Salem said the first...

    Is it possible that as Salem said the first string isn't terminated so the first while loop is operating on both strings?? IE the second string is right after the first one in memory so effectively...
  5. sorry you answered whilst i was posting my drivel...

    sorry you answered whilst i was posting my drivel and put it a lot more succinctly
  6. what happens if you do printf("%p\n", y) then...

    what happens if you do printf("%p\n", y) then printf("%p\n", y[1]) are the results different?

    i think the answer is that strings are effectively arrays so each character is stored at a separate...
  7. Replies
    52
    Views
    9,303

    what is this line saying else if (...

    what is this line saying

    else if ( PossNum[Row][Column][Digit] != PossNum[Row][Column + 1][Digit] && PossNum[Row][Column][Digit] != PossNum[Row][Column + 2][Digit] )

    i want it to evaluate...
  8. Replies
    52
    Views
    9,303

    what possible numbers do you get after running my...

    what possible numbers do you get after running my code for row 6 column 7 and row 6 column 9 before passing it through locked numbers i have 2, 3, 4 and 6 for Column 7 and 3,4 and 6 for column 9.
    ...
  9. Replies
    52
    Views
    9,303

    i have the following possible values for column 7...

    i have the following possible values for column 7
    row 1 = 1--4----9
    row 2 = 1-------9
    row 3 = ----5--89
    row 4 = -2---6-8-
    row 5 = --34-6--9
    row 6 = -----6---

    therefore row 6 column 7 must be...
  10. Replies
    52
    Views
    9,303

    ummm row 6 column 7 can only be a 6 same with...

    ummm row 6 column 7 can only be a 6 same with column 9 this is why you got the wrong answer with my code
  11. Replies
    52
    Views
    9,303

    i was going to do something along the lines of ...

    i was going to do something along the lines of


    while (NumcellsSolved < 81 )
    {
    int x = NumcellsSolved;
    NumcellsSolved += NakedSingles( PossibleNums, Solution );
    ...
  12. Replies
    52
    Views
    9,303

    this is the issue my locked numbers doesn't work...

    this is the issue my locked numbers doesn't work with puzzle 1 just using locked numbers once after the while loop produces this


    12-----8- --3-----9 123----89 --------- --3----8- ---------...
  13. Replies
    52
    Views
    9,303

    perhaps all this will be clearer with an example ...

    perhaps all this will be clearer with an example


    1 - - 9 2 - - - -
    5 2 4 - 1 7 - - 9
    - - - - - - 2 7 1

    - 5 - - - 8 1 - 2
    - - - 1 - 2 - - -
    4...
  14. Replies
    52
    Views
    9,303

    the for loop im trying to get out of is the digit...

    the for loop im trying to get out of is the digit one which is the inner most one
  15. Replies
    52
    Views
    9,303

    sorry your right it should be...

    sorry your right it should be [code]printf("number of solved cells is %d\n", NumcellsSolved);[\code]
  16. Replies
    52
    Views
    9,303

    i know this doesn't work as i get 2 naked singles...

    i know this doesn't work as i get 2 naked singles that are the same on row 5

    the premises is that if i have 2 2's on the same row and in the same region then there cant be any other 2's in that...
  17. Replies
    52
    Views
    9,303

    here is the full program again as i changed some...

    here is the full program again as i changed some function names and edited main to include the new function

    #include <stdio.h>
    #include <stdlib.h>

    void RemovePossNum(int, int, int, int...
  18. Replies
    52
    Views
    9,303

    if i have the following for ( int i = 0; i

    if i have the following


    for ( int i = 0; i < 5; i++){
    if ( i == 3) break;
    some code here
    }


    the for loop will break when i = 3 rather than when i = 5 and the following code wont...
  19. Replies
    52
    Views
    9,303

    Wow thank you. There are still lots of rules to...

    Wow thank you.
    There are still lots of rules to factor in. like pairs of possibles or triples etc etc
    does the ifdef have to be in the same file as main or could i add a file and have lots of...
  20. Replies
    52
    Views
    9,303

    it would help i think if the hidden singles...

    it would help i think if the hidden singles function starting on line 187 searched the regions as well like i do on line 153 for naked singles
  21. Replies
    52
    Views
    9,303

    it solved the first one but not the second. all...

    it solved the first one but not the second. all my program does is look for naked singles (cells that have only one possible number) and hidden singles numbers that only appear once in a row or...
  22. Replies
    52
    Views
    9,303

    solved it kind of..... got the row an column to...

    solved it kind of..... got the row an column to work just cant get region to work but as what i have solves it i guess there is no need


    int HiddenSingles( int PossNum[][9][9], int Solved[][9] )...
  23. Replies
    52
    Views
    9,303

    i have changed the above code to this ...

    i have changed the above code to this


    #include <stdio.h>
    #include <stdlib.h>

    void RemovePossNum(int, int, int, int [][9][9] );
    void GetRegion( int, int, int *, int * );
    void...
  24. Replies
    52
    Views
    9,303

    ok after 24 hours i have managed to get it to...

    ok after 24 hours i have managed to get it to find the "naked singles"


    #include <stdio.h>
    #include <stdlib.h>

    void RemovePossNum(int, int, int, int [][9][9] );
    void GetReigon( int, int, int...
  25. Replies
    52
    Views
    9,303

    im still trying to solve it just seem to be going...

    im still trying to solve it just seem to be going round in circles
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4