Dear All
I am trying to use sscanf() function to read a string and assign two double which are separeted by comma to two different variables. Code part is in the following.
it gives :Code:long double T,V; string tmp1="2.4E-09,-0.007000001"; sscanf(tmp1.c_str(),"%13.15f,%13.15f",&T,&V); cout<<T<<" "<<V<<"\n";
2.51292e+3273 -0.6614e-2303
What is the problem?
I would be pleaed if you could help.
thank you