Thread: fatal error C1004: unexpected end of file found

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    12

    fatal error C1004: unexpected end of file found

    You guys have been really helpful, but i have yet another question. I have been making this really cheesy game. Anyways, I have used the switch() command many times before and I was told that, in order to use it I must...
    Code:
    int direction1 = 0
    right?? I have to make it equal to 0...the problem is, now that i have 3 switches, its giving me a fatal error and it says theres an unexpected end of file on line 164 (which is the line right after it finishes (}). Do you have any idea what this could be...

    Code:
    int direction1 = 1; //FIRST DIRECTION

    WAIT! OH MY GOD, i think i just found it out..

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    12
    I appologize for posting a useless thread... I have discovered the problem, it wasnt the intilization, it was the switch, it ended with a
    Code:
    {
    instead of a
    Code:
    }
    Sorry,
    Gutty

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. Unexpected end of file, splitting headers into .h/.cpp
    By Shamino in forum C++ Programming
    Replies: 19
    Last Post: 12-11-2007, 01:08 PM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM