PDA

View Full Version : Portting A simple A.I. TicTacTo to Pascal



fuwa
25-04-2007, 09:05 AM
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.

dmantione
25-04-2007, 10:50 AM
& is C++'s notation to pass by reference. You can declare the procedure in Pascal as:


procedure MyMove(var gameover:longint);

fuwa
25-04-2007, 12:47 PM
& is C++'s notation to pass by reference. You can declare the procedure in Pascal as:


procedure MyMove(var gameover:longint);


Thank you very much !

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

Best regards with best wishes,
Fuwa Fung.