unexpected end of file found

This is a discussion on unexpected end of file found within the C++ Programming forums, part of the General Programming Boards category; C:\Documents and Settings\Eric\Desktop\FreePad\Source\main.cpp(157) : fatal error C1004: unexpected end of file found How do I make it expect the end ...

  1. #1
    eam
    eam is offline
    Registered User eam's Avatar
    Join Date
    Oct 2003
    Posts
    53

    unexpected end of file found

    C:\Documents and Settings\Eric\Desktop\FreePad\Source\main.cpp(157) : fatal error C1004: unexpected end of file found

    How do I make it expect the end of the file?

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    look at line 157 of your code....there is probably an extra closing bracket. delete it, and that should solve your problem

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #3
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    You probably have an open bracket without a matching close bracket. Just put a close bracket at the end of the file and see what happens.

  4. #4
    eam
    eam is offline
    Registered User eam's Avatar
    Join Date
    Oct 2003
    Posts
    53
    Looks like I left a switch open, now it works. Thanks.

  5. #5
    Magically delicious LuckY's Avatar
    Join Date
    Oct 2001
    Posts
    856
    Hey eam, is your avatar the statue that Mario turns into when he's wearing the teddy bear costume?

  6. #6
    eam
    eam is offline
    Registered User eam's Avatar
    Join Date
    Oct 2003
    Posts
    53
    Yep.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adventures in labyrinth generation.
    By guesst in forum Game Programming
    Replies: 8
    Last Post: 10-12-2008, 01:30 PM
  2. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  3. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 04:02 AM
  4. Unexpected end of file, splitting headers into .h/.cpp
    By Shamino in forum C++ Programming
    Replies: 19
    Last Post: 12-11-2007, 12:08 PM
  5. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21