Hai
when i compile the cpp file(cmdargs.cpp) i attached the output below
the program
int main(int argc, wchar_t* argv[])
{
std::wcout<<L"Name of the Program is
"<<*argv[0]<<std::endl;
std::wcout<<L" Argument Count "<<argc-1<<std::endl;
for(int args=1;args<argc;args++)
{
std::wcout<<L"Argument "<<args<<" is "<<
*(argv[args])<<std::endl;
}
return 0;
}
output :
~~~~~~~~~~~~~~
Name of the Program is
-->
-->
-->
-->
#include<iostream>
#include <stdlib.h>
int main(int argc, wchar_t* argv[])
{
std::cout<<"Name of the Program is
"<<*argv[0]<<std::endl;
std::cout<<" Argument Count "<<argc-1<<std::endl;
for(int args=1;args<argc;args++)
{
std::cout<<"Argument "<<args<<" is "<<
*(argv[args])<<std::endl;
}
return 0;
}
cmdargs asd fgh jkl
output :
~~~~~~~~~~~~~~
Name of the Program is 1668113505
Argument Count 3
Argument 1 is 1634952192
Argument 2 is 1718052864
Argument 3 is 1785424896
-->
-->
-->
-->
here i got some nos but i want the strings how i can print the
values..plz help he
Thanks in advance