Thread: need help with command line arguments

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    24
    how can I run the program with command line arguments, do I just run it by pressing F5 or is there another way,
    cos pressing f5 doesn't work

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I personally use command-line prompt to do this type of stuff, but if you want, there is a setting for "command line" under "project->properties" (make sure you click on the executable "product", rather than some individual .c or .cpp file).

    Just remember what you set it to last time, because I've more than once "confused myself" thinking that the command line is "x", when it's actually "y", and wondering why the application isn't doing what I wanted.

    --
    Mats

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginner Needs help in Dev-C++
    By Korrupt Lawz in forum C++ Programming
    Replies: 20
    Last Post: 09-28-2010, 01:17 AM
  2. GradeInfo
    By kirksson in forum C Programming
    Replies: 23
    Last Post: 07-16-2008, 03:27 PM
  3. command line arguments
    By vurentjie in forum C Programming
    Replies: 3
    Last Post: 06-22-2008, 06:46 AM
  4. NULL arguments in a shell program
    By gregulator in forum C Programming
    Replies: 4
    Last Post: 04-15-2004, 10:48 AM
  5. registry, services & command line arguments.. ?
    By BrianK in forum Windows Programming
    Replies: 3
    Last Post: 03-04-2003, 02:11 PM