CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: %1 help

  1. #1
    Join Date
    Feb 2008
    Posts
    16

    Exclamation %1 help

    for anyone who knows batch really well
    what is the command %1 (batch) in c++?

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: %1 help

    Is %1 the first parameter on the command line?
    If so, you can get your command line parameters on different ways. All depends on what program you are writing.
    For example, a basic console application can have a main like:
    Code:
    int main(int argc, char* argv[])
    { ... }
    argc is the number of command line parameters and argv is an array of strings containing the command line parameters.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

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

Featured