I got the same result. The problem was not solved yet.
Chrissie ja
Posts
-
convertion between string and double -
convertion between string and doubleI have a problem with convertion between string and double as following: double dValue = 1000; std::ostrstream oStrStream; oStrStream << dValue << std::ends; std::string strValue = oStrStream.str(); //here strValue is "1,000", a comma is added! //when I use following code to convert, error occurred. double dValue = strtod( strValue .c_str(), NULL ); //here dValue is "1", it seems "," can't be recognized! How to avoid this? Is there any way to avoid adding comma when convert double to string?
-
About data combinationyou are so nice~ :) :rose::rose::rose:
-
About data combinationBecause the count of array is variable, it is difficult to use loop. Recursion is good idea, but would you please write some sample code for me? thank u!!:rose:
-
About data combinationThank you very much for your reply, but I am not quite clear about it. Would please explain it in detail? I need a algorithm to get all the combinations.
-
About data combinationThere are n arrays, and there are several elements in each. Count of array and count of elements in array are variable. A1{a1,a2,a3,an1} //there are n1 elements in array A1 B1{b1,b2,b4,bn2} //there are n2 elements in array B1 ..... N1{n1..nn} :confused://there are n elements in array N1 I need all the combination which are composed with one element of every array,order is same as the array's like: a1,b1,.....n1 a1,b2,.....n2 ... a2,b1,.....n1 ... an1,bn2,....nn
-
About CComboBox::GetLBText()I created about 40 CComboBox dynamically, and do following process for every combobox
-----------------------------------------------------------------
pComboBox[i]->AddString(str); //line 1
int iCurIndex = pComboBox[i]->SelectString( -1, str); //line 2
if(iCurIndex != -1)
pComboBox[i]->GetLBText(iCurIndex , str); //line 3When i is 36, exception will occur at line 3. At this time, iCurIndex is 0, however,content of pComboBox[36] can't be acquired.