Thread: command line arguments

  1. #16
    Registered User
    Join Date
    Sep 2008
    Toronto, Canada
    BEN10, "command line" is simply user input at a text-based terminal... before fancy windows interfaces were invented. When you just type the name of the program at a prompt. The program's parameters (or arguments) are entered in following the program name.

    testprog hello 12 -Q

    would execute the program "testprog" and pass it "hello", "12", and "-Q". These parameters are available in the program: number of parameters is in the variable argc and the values are in the argv array.

  2. #17
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Sort of. In Windows you can add command line arguments to the shortcut of whatever you've got set up to run.

    Hope is the first step on the road to disappointment.

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