以下C++代码如何转成C#
int m_intSvrQueNum;
CString strAppMode,strSend,userid,password,strSvrQueNum,strSpecialClnID,strBuildInfo,userid,password ;
strSvrQueNum.Format("%d",m_intSvrQueNum);
strAppMode="0";
strBuildInfo="1.0.0.1";
strSpecialClnID="2";
userid="vs2010";
password="123456";
strSend = userid + char(1)
+ password + char(1)
+ strAppMode + char(1)
+ strSvrQueNum + char(1)
+ strSpecialClnID + char(1)
+ strBuildInfo + char(1) ;
strSend=userid + char(1)+ strSend;
------解决方案--------------------
String strSvrQueNum = String.Format("%d",m_intSvrQueNum);
String strAppMode="0";
String strBuildInfo="1.0.0.1";
String strSpecialClnID="2";
String userid="vs2010";
String password="123456";
String strSend = userid + (char)1
+ password + (char)1
+ strAppMode + (char)1
+ strSvrQueNum + (char)1
+ strSpecialClnID + (char)1
+ strBuildInfo + (char)1 ;
strSend = userid + (char)1 + strSend;
------解决方案--------------------
呵呵,改一下就好:
String strSvrQueNum = String.Format("%d",m_intSvrQueNum);
--〉
String strSvrQueNum = m_intSvrQueNum.ToString();