Thread: Command line - method

  1. #1
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198

    Command line - method

    Hello,

    I asked an earlier question about command line options, but i wasnt sure if people could see that a asked another question relating to the response so I posted a new one.

    when i call the function

    function(argv[1], argv[2])
    in the function 'function' should there me a scnaf to read in the strings?

    Thanks

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    No, the program already has the strings in memory when it begins so you can treat them as if you already scanned them in.

    -Prelude
    My best code is written with the delete key.

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    When a function calls a function and parameters are to be passed, the first function will place the parameters on the stack and the second gets them from there. So the parameter values are already available. Note that when the second function has finished, it depends on the way the first function passed the parameters if the new values will be available to the first function. It's also possible that you don't want the values to be changed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. on method pointers and inheritance
    By BrownB in forum C++ Programming
    Replies: 2
    Last Post: 03-02-2009, 07:50 PM
  2. stuck on display method
    By shintaro in forum C++ Programming
    Replies: 2
    Last Post: 02-01-2009, 05:17 PM
  3. Best communication method to thousand childs?
    By Ironic in forum C Programming
    Replies: 8
    Last Post: 11-08-2008, 12:30 AM
  4. C# method
    By siten0308 in forum C# Programming
    Replies: 6
    Last Post: 07-15-2008, 07:01 AM
  5. Replies: 2
    Last Post: 01-22-2008, 04:22 PM