char tmpbuf[1024];
sprintf(tmpbuf, "%d%02d%02d", "2006", "2", "8");
long lStartDate = atol(tmpbuf);如何得到tmpbuf和lStartDate ------------------DWORD nID =..
WORD wMarket = (WORD)(nID >> 16);
nIndex = (short)(nID & 0xffff);
其中的(nID >> 16)和(nID & 0xffff)应该如何用c#表达谢谢
sprintf(tmpbuf, "%d%02d%02d", "2006", "2", "8");
long lStartDate = atol(tmpbuf);如何得到tmpbuf和lStartDate ------------------DWORD nID =..
WORD wMarket = (WORD)(nID >> 16);
nIndex = (short)(nID & 0xffff);
其中的(nID >> 16)和(nID & 0xffff)应该如何用c#表达谢谢
long lStartDate = long.Parse(tempbuf);DWORD nID =..
WORD wMarket = (WORD)(nID >> 16);
nIndex = (short)(nID & 0xffff);
====================================
int nID = ..
Int16 wMarket = (Int16)(nID >> 16);
nIndex = (short)(nID & 0xffff);
除了数据类型,表达式是一样的。