Thread: How come Dev C++ cant run some programs??

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    >> so if the program or any program just require anything that has to do with EOF i have to do the F6 thing right? and if it doesnt call eof as an argument of any kind then i wont need to press F6 ever? <<

    Yes. Pretty much. You can also use a file as input. This is called redirection. In this case, the program will receive EOF (which stands for "end of file") at the end of the file. This example shows how to run a program using file.txt as the input.
    Code:
    >yourprogram < file.txt
    >> oh sorry i forgot also one last thing, is there a way to set dev c++ to do the F6 thing automatically whenever eof is called? <<

    No. How would it know when to supply the EOF? The EOF allows you to tell the program that you have finished supplying input. If your program only expects a single line of input, it might use the new line character to tell it when the input is complete.

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    17
    lol now that i thought about the 2nd part of my question, it was kinda dumb. but yeah thanks alot now i can continue on

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Visual c++ 2005 express edition to run .c files
    By the_fall_guy in forum C Programming
    Replies: 4
    Last Post: 04-05-2007, 12:33 PM
  2. Dev C++ Won't Compile
    By mburt in forum Windows Programming
    Replies: 8
    Last Post: 08-21-2006, 11:14 PM
  3. Running programs - few stupid mistakes
    By Korhedron in forum C++ Programming
    Replies: 14
    Last Post: 03-10-2004, 03:10 PM
  4. Programs to run C applications
    By Mak in forum C Programming
    Replies: 3
    Last Post: 03-01-2004, 12:56 PM
  5. how to compile & run c programs in unix?
    By Unregistere in forum C Programming
    Replies: 2
    Last Post: 10-09-2002, 10:53 PM