Pawel_Iks
2007-08-06 20:43:08 UTC
Hello!
I want to use following statement to pass command-line arguments into
main function:
int main(int argc, string argv[])
{
if (argc>0)
{
//do something
}
return 0;
}
and it's an error ... do i have to use *char type, and if yes, how to
convert it into string type which is more diserable for me ... any
clues, solutions ???
I want to use following statement to pass command-line arguments into
main function:
int main(int argc, string argv[])
{
if (argc>0)
{
//do something
}
return 0;
}
and it's an error ... do i have to use *char type, and if yes, how to
convert it into string type which is more diserable for me ... any
clues, solutions ???