Results 1 to 10 of 28

Thread: Sudoku solver program, do it like a human!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    The problem lies in the way you are creating your classes.
    Whenever you are creating classes you use next sytax:

    Code:
    //ClassRefereneVar is variable trhrough which you will be accessing your class
    //MyClass is the name of the class you are creating
    ClassReferenceVar := MyClass.Create;
    So in your case you need to call:

    Code:
    Grid[i,j] := Cell.create(i,j); //Right approach
    instead of:

    Code:
    Grid[i,j].create(i,j //Wrong approach
    EDIT: Pepole usually add T prefix to class names (TCell insted of just Cell) so that they can be quicly distinguished between normal variables in code.
    Last edited by SilverWarior; 04-01-2015 at 10:25 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •