Ok, im trying to just write a simple program to make a tic tac toe game. Ok, I think i need to use arrays and the like. I'm totally confused on how to start, all i have is a big mess. Here is what I have so far, and there are tons of errors:
#include <iostream.h>
#include <conio.h>
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <iomanip.h>
#include <string>
#include <fstream.h>
int main() //Line 10
{
char marker[10];
int array[3][3];
int array1[10];
int move1[10];
int move2[10];
cout<<"1 2 3"<<endl;
cout<<"4 5 6"<<endl;
cout<<"7 8 9"<<endl;
int *ptr1;
int *ptr2;
int x=1;
do
{
ptr1=move1[x];
ptr2=move2[x];
cout<<"Where do you want to move? "; //Line 20
cin>>move[x];
cin>>move2[x];
array[ptr1][ptr2]=marker[x];
x=x+1;
}while(x<10);
}
return 0;
}
Alright, will someone please tell me if im even close to the right kind of idea? Also, since i know im wrong, how would i go about doing a tic tac toe game? ANY HELP WILL HELP ME!!!