2 C++ ??: 1) a Val() equivalent? 2) a conversion list?
Hi all.
I am just beginning my study of (Visual) C++ this week. I was re-writing a calculator I wrote in VB when I was just begiinning VB.
So is there a C++ equivalent to Val() ?
I found strtod(a,b) which seems to be the equivalent of
vb's Cdbl(x) .
Anyway, I can't get strtod to work. I just don't get it and the MSDN example doesn't make sense.
So I have a string with a numerical value like "500"
and I want to move that to a double like
dblNumber = strtod(strNumber,????)
and everything I put in the 2nd parameter creates errors.
Okay, 2nd question, is there a place I can find a keyword (key function) conversion list for VB and C++? I think that would help the most.
Thanks all.
Wengang