Could someone please help me get pass the build errors/
I am sending my code
this is written useing .net 2003
Thank You
WackoWolf
Code:
// This is the main project file for VC++ application project
// generated using an Application Wizard.
#include "stdafx.h"
#include <assert.h>
#using <mscorlib.dll>
using namespace System;
void welcome(void);
enum Turn who_goes_first(void);
void gameover_message(enum Result result);
int play_again(void);
void goodbye(void);
int _tmain()
{
enum Turn turn;
enum Result result;
int newgame = 1;
welcome();
while (newgame) {
turn = who_goes_first();
result = play_game(turn);
gameover_message(result);
newgame = play_again();
};
goodbye();
return 0;
}
void welcom(void)
// This is The Welcome Screen, which also has the rules
{
printf("Welcome To Tic-Tac-Toe\n\n");
printf("----------------------\n\n");
printf("The Object of this game is to get a line of X's\n);
printf("before the other person gets a line of O's. A line may\n");
printf("be across, down, or diagonal.\n\n");
printf("The board is labelled from 1 to 9 as follows:\n\n");
printf("\t1|2|3\n");
printf("\t-----\n");
printf("\t4|5|6\n");
printf("\t-----\n");
printf("\t7|8|9\n");
printf("\n\n");
}
enum Turn who_goes_first(void)
{
int decide = getint_from_user1("Do you wish to go first (1-Yes, 0-N0) ? ");
if (decide == 1)
return USER1;
// If user types anything but "1", user 2 goes first
return USER2;
}
void gameover_message(enum Result result)
{
switch(result)
{
case WIN:
printf("\nYou Win.\n\n");
break;
case LOSE:
printf("\nYou Lose.\n\n");
break;
case DRAW:
printf("\nIts a Draw.\n\n");
break;
default:
assert(0);
}
}
void goodbye(void)
// Goodbye Message
{
printf("\nGoodbye.\n\n");
}