Error 1 error C1075: end of file found before the left brace '{' at 'c:\documents\visual studio 2012\projects\hi\hi\hi.cpp(9)' was matched c:\documents\visual studio 2012\projects\hi\hi\hi.cpp 91 1 Hi
On this code:
#include "stdafx.h"
#include <iostream>
#include <Windows.h>
#include <string>
using namespace std;
int main()
{
string manual;
string aa = " ";
string ab = " ";
string ac = " ";
string ba = " ";
string bb = " ";
string bc = " ";
string ca = " ";
string cb = " ";
string cc = " ";
string column;
string line;
cout<<"Welcome to Tic-Tac-Toe V2.0!\n";
cout<<"Loading...\n";
Sleep(2000);
cout<<"Done\n";
cout<<"Would you like to see the manual? y or n\n";
cin>>manual;
if ( manual == "y" )
{
cout<<" User Manual\n";
cout<<"First, Enter the Column and Line for P1's Move\n";
cout<<"Reapeat for P2, Continue\n";
cout<<"When Someone Wins, You will Be Notified and The Game Will End.\n";
cin.get();
}
else if ( manual != "y" )
{
cout<<"Then on With The Show!\n";
Sleep(2000);
}
cout<<"X's Move\n";
cout<<" Column \n";
cout<<" _________________\n";
cout<<" | | A | B | C | \n";
cout<<" |---|-----------| \n";
cout<<" L | A | "<<aa<<" | "<<ab<<" | "<<ac<<" | \n";
cout<<" i |---|-----------| \n";
cout<<" n | B | "<<ba<<" | "<<bb<<" | "<<bc<<" | \n";
cout<<" e |---|-----------| \n";
cout<<" | C | "<<ca<<" | "<<cb<<" | "<<cc<<" | \n";
cout<<" |___|___________| \n";
cout<<"Column:\n";
cin>>column;
cout<<"Line:\n";
cin>>line;
if ( column == "A" ) {
if ( line == "A" ) {
aa = "X";
}
else if ( line == "B" ) {
ba = "X";
}
else ( line == "C" ); {
ca = "X";
}
}
else if ( column == "B" ) {
if ( line == "A" ) {
ab = "X";
}
else if ( line == "B" ) {
bb = "X";
}
else ( line == "C" ); {
cb = "X";
}
}
else ( column == "C" ); {
if ( line == "A" ) {
ac = "X";
}
else if ( line == "B" ) {
bc = "X";
}
else ( line == "C" ); {
cc = "X";
}
Sleep(10000);
}
This is supposed to be the start of a tic-tac-toe game...
Hope I can get some help!
Thanks,
Nedra144

New Topic/Question
Reply



MultiQuote





|