摘要: long myProject::Convert2To10(CString strBuff){  long num = 0, sum = 0;  int nLen = strBuff.GetLength();  for ( int i = 0; i < nLen; i++ )  {    num = ( strBuff.GetAt(i) - 48 );    num = num * (long... 阅读全文
posted @ 2010-06-17 15:22 zhouli 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: CString myProject::Convert16To2(CString strSource){  //转换成大写字母  strSource.MakeUpper();  CString strDest;  for( int i = 0;i < strSource.GetLength();i++ )  {    if(strSource.GetAt(i) == '0')      str... 阅读全文
posted @ 2010-06-17 15:19 zhouli 阅读(1041) 评论(0) 推荐(0) 编辑