Results 1 to 3 of 3

Thread: Portting A simple A.I. TicTacTo to Pascal

  1. #1

    Portting A simple A.I. TicTacTo to Pascal

    I have abandoned my C knowledge for a long time. My Website : www.flaisoft.com . It is a duplicated file searching program . It is Super-Fast and reliable , intelligent . Support Uni-code and can export to Uni-code CSV format and html . And has many special features .

    My Problem is :

    C Source :

    void MyMove(int &gameover); <----- &gameover , how to port it to Pascal ?

    Thanks for your attention .

    Best regards,
    Fuwa Fung.

  2. #2

    Portting A simple A.I. TicTacTo to Pascal

    & is C++'s notation to pass by reference. You can declare the procedure in Pascal as:

    [pascal]
    procedure MyMove(var gameover:longint);
    [/pascal]

  3. #3

    Portting A simple A.I. TicTacTo to Pascal

    Quote Originally Posted by dmantione
    & is C++'s notation to pass by reference. You can declare the procedure in Pascal as:

    [pascal]
    procedure MyMove(var gameover:longint);
    [/pascal]
    Thank you very much !

    Stop GreenHouse Effect ! Think Green . Stop to Cut the Trees . No more Monoploy .

    Best regards with best wishes,
    Fuwa Fung.

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
  •