cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Help with command line
Help with command line
Sep 29, 2016 at 12:26am UTC
chocoluve
(8)
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?
Sep 29, 2016 at 12:33am UTC
wildblue
(1505)
<cstdlib> has a set of functions that convert c strings to different types, including double.
http://www.cplusplus.com/reference/cstdlib/
Sep 29, 2016 at 12:38am UTC
chocoluve
(8)
Thank you!
Topic archived. No new replies allowed.