Author: Tom Kerrigan
Date: 12:44:21 02/22/00
Go up one level in this thread
On February 22, 2000 at 14:39:29, blass uri wrote: >On February 22, 2000 at 10:05:33, blass uri wrote: > ><snipped> >> printf("print 1 if you want to start otherwise print 2\n"); >> scanf("%d",side); > >I see that this was wrong and I need to use >scanf("%d",player) when player is fixed all the game scanf needs to be able to set the variables you pass it, so you need to pass pointers to the variables, and not just their values. scanf("%d", &player); -Tom
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.