Help with command line

I'm trying to pass argv[1] to a function but since I have argv[] defined as char* it will not let me as the function asks for a double variable. Is it possible for me to change a specific argv[] to a different type before sending it?
<cstdlib> has a set of functions that convert c strings to different types, including double.

http://www.cplusplus.com/reference/cstdlib/
Thank you!
Topic archived. No new replies allowed.