2009年8月13日 星期四

c#練習 - int,字串互轉

int to string
int num = 5;
string str = num.ToString();

string to int
string str= "5";
int num = int.parse(str);

1 則留言:

執著於我的執著!! 提到...

int StrToInt( LPCTSTR lpSrc );

winsock2.h redefined問題

解法: #define _WINSOCKAPI_    // stops windows.h including winsock.h #include #include