MFC补码原码反码转换工具

/*_TCHAR str[100] = { 0 };
    wsprintf(str, _T("%d"),num);*/

    int num = 0;
    CString str;
    m_edit1.GetWindowTextW(str);
    swscanf_s(str, _T("%d"), &num);//sscanf 字符串检索

    _TCHAR stry[33] = { 0 };
    _TCHAR strf[33] = { 0 };
    _TCHAR strb[33] = { 0 };

    ycode(num, stry);
    m_edit2.SetWindowTextW(stry);
    fcode(num, strf);
    m_edit3.SetWindowTextW(strf);
    bcode(num, strb);
    m_edit4.SetWindowTextW(strb);

 

posted @ 2015-12-31 19:46  喵小喵~  阅读(4892)  评论(0编辑  收藏  举报