End of File Found Before Left Brace?

I am creating a text-based game with the Visual Studio 2012 for Windows Desktop compiler. I keep getting this error saying that the end of the file is found before the left brace. Can someone explain this error to me and tell me how to fix it? Thanks!

My Code:

[code]#include "stdafx.h"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <windows.h>
#include <string>
#include <random>
#include <ctime>
#include <time.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
bool battle;
string gender;
string name;
string weapon;
int health=15;
int attack=1;
int weapondamage;
int defense1;
int speed=5;
int enemyspeed;
int enemyattack;
int enemydefense;
int enemyhealth;
char choice1;
char choice2;
char choice3;
char choice4;
char choice5;
char choice6;
cha
Some of your code is missing, and pls format with code tags, using source code option <>.
I tried to add all my code, but the forum tells me it's too long. Sorry! But can you explain to me what this error means?
Topic archived. No new replies allowed.