Results 1 to 10 of 10

Thread: Console (command line)

Threaded View

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    Console (command line)

    ok i know some c++ cuz of you people out her thanks now i want to know about the command line arguments . Do they have to do with
    VB Code:
    1. int main (int nArgs, char* pszArgs[])

    if i do this
    VB Code:
    1. #include <stdio.h>
    2. #include <iostream.h>
    3.  
    4.  
    5. int main (int nVal, int nVal2, char* pszArgs[])
    6. {
    7.  
    8. int nVal3 = nVal + nVal2;
    9. cout << "The total is: " << nVal3;
    10.  
    11.  
    12. return 0;
    13. }
    Will it work? Like how would i enter the command line arg?
    like
    Add.exe 3, 4 is incorrect but whats the right way
    Last edited by JasonLpz; Jan 25th, 2003 at 03:25 PM.
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width