command line arguments

This is a discussion on command line arguments within the C++ Programming forums, part of the General Programming Boards category; hey, I am pretty new to c++ and just going through tutorials on this site. I am on the one ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    29

    command line arguments

    hey,
    I am pretty new to c++ and just going through tutorials on this site. I am on the one which talks about accepting command line arguments.

    I don't completly understand what command line arguments are, or how to use them. Can someone please explain?

    thanks

  2. #2
    the Wizard
    Join Date
    Aug 2004
    Posts
    109
    Well, basically Command Line Arguments, are f.eks. when you call a dos program with parameters.
    e.g. program.exe parameter1 parameter2, where parameter1 & parameter2 are the arguments..
    Maybe this helps you to understand it a little better??
    -//Marc Poulsen -//MipZhaP

    He sat down, he programmed, he got an error...

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    29
    ok,
    so how could I use this in my programs?

  4. #4
    Handy Andy andyhunter's Avatar
    Join Date
    Dec 2004
    Posts
    540
    i don't think most standard compilers support programmers with more than 4 red boxes - Misplaced

    It is my sacred duity to stand in the path of the flood of ignorance and blatant stupidity... - quzah

    Such pointless tricks ceased to be interesting or useful when we came down from the trees and started using higher level languages. - Salem

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. Replies: 10
    Last Post: 09-27-2005, 12:49 PM
  5. NULL arguments in a shell program
    By gregulator in forum C Programming
    Replies: 4
    Last Post: 04-15-2004, 10:48 AM

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