In C++, use boost::lexical_cast, or: std::stringstream ss(the_string); long double ld; if (ss >> ld) { // it worked } In C99, use strtold. In C89, use sscanf with %Lg. In C++11 use stold.
There may be subtle differences as to exactly which formats each one accepts, so check the details first...
1 for if (ss >> ld). – Nawaz Sep 12 at 14:33.
Std::stringstream ss(myString); long double x; ss >> x.
In c++, I can only recommend boost::lexical_cast (or in general via the IOStreams). In c? No idea.
Just a hint on C for you Matthieu, all conversions like that, you could do with *printf/*scanf – Shahbaz Sep 12 at 14:22.
You can use istream to read long double from string. See here cplusplus.com/reference/iostream/istream... If you like scanf family of functions, read with %Lf.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.