I'm new to c++ and new to this forum, so hello everybody
the problem is this:
I'm using a function that has the command line arguments as its input values:
bool CalcUnit::validate(int argc, char* argv[]) ect...
now, I found out that I can get the arguments values like this: *argv[1] ect...
In my function I need to have the value of *argv[1] in the string datatype, because a child function { bool isUnit( std::string input); } that needs to access this argument demands a string as the input value.
so I've tryied to cast that argument like this: isUnit( (string)*argv[1] )
but somehow this won't work :/
any clues why