command line parameters

This is a discussion on command line parameters within the C++ Programming forums, part of the General Programming Boards category; hi sorry to disturb everyone in advance, just wondering if any1 knows an easy way to take in command ine ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    22

    command line parameters

    hi sorry to disturb everyone in advance,
    just wondering if any1 knows an easy way to take in command ine parameters, i have looked into this but the best solution that a lecturer gave me was to use this class he had. However i was thinkin there may be a way to take in command line paramters that was slightly easier to use, or is this not the case.
    thanks in advance
    pants

  2. #2
    Registered User OxYgEn-22's Avatar
    Join Date
    Apr 2002
    Posts
    36
    arguments?

    this is the ony way i know of how to get arguments

    Code:
    int main(int argc, char argv[][])
    where the argc is the number of arguments comming into the program and the argv is the value within! (or did i misunderstand the question)
    Is that air you're breathing?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Parameters quick Question
    By lifeis2evil in forum C++ Programming
    Replies: 2
    Last Post: 11-18-2007, 11:12 PM
  2. function with variable number of parameters
    By mikahell in forum C++ Programming
    Replies: 3
    Last Post: 07-23-2006, 04:35 PM
  3. Additional parameters for operator delete
    By darksaidin in forum C++ Programming
    Replies: 0
    Last Post: 09-21-2003, 12:46 PM
  4. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM
  5. command-line parameters.
    By Tombear in forum C Programming
    Replies: 2
    Last Post: 10-28-2001, 08:40 AM

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