hey guys
i have char *argv[] to receive command line arguements.
I can get characters out no problem
I can get integers parsed out no problem
But how do I get double values.
eg if my program is called test and I run it as
test n t 3 4 2.4 3.55
how do I store the value 2.4 into a variable "double alpha", and the value
3.55 into a variable "double beta"?
Bearing in mind the doubles could be any number of decimal places, I need
to know how to have a general "loop" (I suppose) that will go through and
pick me out the doubles.
You can assume that the values may change in length but that the number of
arguments will always be the same and there will always be only two doubles
at the end to have to store.
Your help on this is greatly appreciated.
Be gentle - beginner/newbie/wet behind the ears etc...
Regards
Dawn