One error stopping me run program.

This is a discussion on One error stopping me run program. within the C Programming forums, part of the General Programming Boards category; I think i sorted out a couple of bugs but can't get rid of one error,, the error will come ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    13

    One error stopping me run program.

    I think i sorted out a couple of bugs but can't get rid of one error,,
    the error will come up when compiled.
    Would appriciate if anyone can get this attatched program to run
    thanks.
    Attached Files Attached Files

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    I see you have added a couple of unneeded #defines....

    if you are using a compiler that doesn't support the bool type then add this to the code under the #includes and do away with those #defines....

    typedef int bool;
    const bool false=0;
    const bool true=1;


    then try recompiling..... it worked fine on visual c 6.... i wouldn't have given u a file of untested code.
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 02:30 PM
  3. Re-doing a C program to run in Win2000 or XP
    By fifi in forum C Programming
    Replies: 5
    Last Post: 08-17-2007, 05:32 PM
  4. Replies: 3
    Last Post: 07-11-2005, 03:07 AM
  5. plz help me run this program!!!
    By galmca in forum C Programming
    Replies: 8
    Last Post: 02-01-2005, 12:00 PM

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