Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

Chrissie ja

@Chrissie ja
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • convertion between string and double
    C Chrissie ja

    I got the same result. The problem was not solved yet.

    C / C++ / MFC help tutorial question

  • convertion between string and double
    C Chrissie ja

    I 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?

    C / C++ / MFC help tutorial question

  • About data combination
    C Chrissie ja

    you are so nice~ :) :rose::rose::rose:

    C / C++ / MFC data-structures

  • About data combination
    C Chrissie ja

    Because 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:

    C / C++ / MFC data-structures

  • About data combination
    C Chrissie ja

    Thank 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.

    C / C++ / MFC data-structures

  • About data combination
    C Chrissie ja

    There 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

    C / C++ / MFC data-structures

  • About CComboBox::GetLBText()
    C Chrissie ja

    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 3

    When i is 36, exception will occur at line 3. At this time, iCurIndex is 0, however,content of pComboBox[36] can't be acquired.

    C / C++ / MFC
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups