Help Me , please

Hi .. At this point I'm making a game of tic tac toe. Now I am confused about how to change the character at the void currentposition previously * be X or O, but the character will change if players enter choice in the void enteroptions, and the character that is in void fill selection deleted.

after that i am confused how to keep in the game tic tac toe has two players and each player has a 9 chance.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  #include <stdio.h>
#include <conio.h>

void currentposition(char a,char b,char c,char d,char e,char f,char g,char h ,char i){
    a = '*',b = '*',c = '*',d = '*',e = '*',f = '*',g = '*',h = '*',i = '*';
	printf("\nCurrent Position\n\n");
	printf(" %c %c %c \n",a,b,c);
	printf(" %c %c %c \n",d,e,f);
	printf(" %c %c %c \n",h,g,i); }

void enteroptions(char choice)
{ 
   printf("\nEnteroptions\n",choice);
   printf(" \n a b c");
   printf(" \n d e f");
   printf(" \n g h i\n");

}

  int main ()
{
	
	char a,b,c,d,e,f,g,h,i;
	char choice;

	
	printf("\n|T  I  C  T  A  C  T  O  E|");
	printf("\n|I                       O|");
	printf("\n|C  Lets play            T|");
	printf("\n|T                       C|");
	printf("\n|A        TIC            A|");
	printf("\n|C           TAC         T|");
	printf("\n|T              TOE      C|");
	printf("\n|O                       I|");
	printf("\n|E  O  T  C  A  T  C  I  T|\n\n");
	fflush(stdin);
	system("pause");
	system("cls");
	
	currentposition(a,b,c,d,e,f,g,h,i);
	enteroptions(choice);
	scanf("\%c",choice);
	

 /*????
 ????*/
	
}
Why do you use printf and scanf?
You know this is C++ not C.
Sorry about that,but now i learn C before c++ , and i have problem about my code .
Topic archived. No new replies allowed.