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);
原文地址:https://www.cnblogs.com/xiaochi/p/5092578.html