Passing parameters to main() new method : main « Development « Visual C++ .NET






Passing parameters to main() new method

 
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args){
    Console::WriteLine(args->Length);
  
    for each (String^ s in args)
    {
        Console::WriteLine(s);
    }
    return 0;
}

   
  








Related examples in the same category

1.Passing parameters to main()