cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
convert from char** argv to int
convert from char** argv to int
May 18, 2010 at 1:09pm UTC
mina samy
(6)
Hello every body!!
I am trying to get an input from argv which is char**
but i want this input to be an integer value
how can i convert argv[1] to int ??
thanks
May 18, 2010 at 1:56pm UTC
Denis
(350)
http://cplusplus.com/articles/numb_to_text/
May 18, 2010 at 2:28pm UTC
mina samy
(6)
I found the answer for any one have the same question,
int x=atoi(argv[1]);
Topic archived. No new replies allowed.