char* argv[]
behaves just like char** argv
would behave. You could also use an char argv[][]
the same way.
So basically, when you call *argv
, you get argv[0]
and *argv[n]
gives you argv[0][n]
edit: to convert argv[x]
into a std::string
:
std::string s(argv[x]);
from that point on s is a standard string. But keep in mind that you must have zero terminated strings, this will not work for random binary data in a char**
!