parse error

This is a discussion on parse error within the C++ Programming forums, part of the General Programming Boards category; Im getting a parse error before `...' message on line 3 in this program, but i cant figure out what ...

  1. #1
    Unregistered
    Guest

    parse error

    Im getting a parse error before `...' message on line 3 in this program, but i cant figure out what the problem is!

    [Code]:

    #include
    #include
    int main_function (char* a) { ... }
    int main (int argc, char* argv[]) {
    if (argc == 1) {
    exit (1);
    }
    else {
    if (strcmp (argv[1], "-h") == 0) {
    cout << "Call: " << argv[0] << " " << endl;
    exit (0);
    }
    if (main_function (argv[1]) == 0) {
    exit (0);
    } else {
    exit (1);
    }
    }
    }

  2. #2
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Question Have you...

    Have you tried #include <iostream.h>, etc.?
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. How to monitor process creation?
    By markiz in forum Windows Programming
    Replies: 31
    Last Post: 03-17-2008, 03:39 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. C++ compilation issues
    By Rupan in forum C++ Programming
    Replies: 1
    Last Post: 08-22-2005, 06:45 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM

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