do
{
printf("Player %d\n",player);
printf("Please choose a position to place your %c:",(player==1)?'X':'O');
scanf("%d",&choice);
}
but the correct syntax is:
do { /* code */ } while (condition);
I would also suggest that you declare variables as and when you require them, rather than all up front. Further if you are declaring a bunch of variables of the same type you can do:
int player(0), winner(0), choice(0), row(0), column(0), line(0);
When using for (...) loop you can declare the index inside the for (...):
1 2 3 4
for (int k = 0; k < 9 && winner == 0; ++k)
{
// code
}
@MikeyBoy - the line where he assigns (if code tags were used I could tell you the line number) a value to the 'column' variable is after the do{} block. What the code is complaining about is the lack of the while(condition); of the do...while block.