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";
What is the problem?
I would be pleaed if you could help.