Error

i keep getting an error saying " fatal error C1075: end of file found before the left brace '{' was matched.
Last edited on
closed account (z05DSL3A)
decent formatting of your code would show the error:
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
int inputFile()
{
    int choice2, file;

    cout<<endl<<"\t**You Have Selected To Read From A File**\n"<<endl;
    cout<<"Please Choose From The Following:";
    cout<<"\n--------------------------------"<<endl;
    cout<<"1. Enter a file name: "<<endl;
    cout<<"2. Select file from a list"<<endl;
    cout<<"3. Return To Main Menu"<<endl;
    cout<<endl<<"Make A Selection From The Menu: ";
    cin>>choice2;


    if(file==1)
    {
        int i, j, x, y;

        char plot[21][75] = {'.'};
        plot[x][y]='+';
        for(i=20; i>-1; i--)
        {
            for(j=0; j<75; j++)
            {
                plot[i][j]='.';
                plot[x][y]='+';

                cout<<plot[i][j];
            }
            cout<<"\n";
        }

    return EXIT_SUCCESS;
}















<--- opening brace















<--- missing closing brace


Edit:
PS never call main() yourself.
Last edited on
Topic archived. No new replies allowed.