find where the missing parenthesis are?

This is a discussion on find where the missing parenthesis are? within the C++ Programming forums, part of the General Programming Boards category; my class is about 800 lines on..i made some modifications about 2/3 weeks ago..i just tried to compile it, and ...

  1. #1
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455

    find where the missing parenthesis are?

    my class is about 800 lines on..i made some modifications about 2/3 weeks ago..i just tried to compile it, and it says "cannot find end of file", so it's most likely a missing parenthesis. BUT THERE ARE SO MANY!!!! haha, its driving me nuts. any programs you guys know of to find where there is a parenthesis missing or something?

    thanks

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    most compilers these days have no trouble bracket matching. It shouldnt take too long to track down problem. Bet you'll be more careful next time!
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    haha yes next time i will be much more careful..lol..do you happen to know where it is in Visual C++ .NET?

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    the easiest thing to do is to go thru it line by line delete and replace a bracket/parenthesis and the matching one should go bold.Youll soon find the problem if you go func by func.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  5. #5
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    oh god thats gonna take forever..lol..well the sooner i start the sooner i finish. cuz alot of my while loops and just huge..ahh!
    well thanks man, g'nite

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    you could write a quick program that will go thru and count the number of opening and closing brackets to see if that is indeed the problem. =]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Crazy errors caused by class, never seen before..
    By Shamino in forum C++ Programming
    Replies: 2
    Last Post: 06-10-2007, 11:54 AM
  3. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  4. Class Include Problem (I Think)
    By gpr1me in forum C++ Programming
    Replies: 8
    Last Post: 03-21-2006, 11:47 AM
  5. how do u find 2nd largest number??
    By juancardenas in forum C Programming
    Replies: 8
    Last Post: 02-14-2003, 07:28 AM

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