- 博客(2)
- 收藏
- 关注
原创 C++ - 字符串(string)和数字(int、float...)互相转换
当当当当!运用stringstream!【int转string】(float等与int相同)源码:#include stringstream ss; int mySeq = 1; string mySeqHelp; ss << mySeq; ss >> mySeqHelp;【string转int】(float等与int相同)
2012-10-30 22:13:45
1275
原创 C++ - 错错错> <
每次都能被各种错给弄抓狂=-=,真是受不了。。索性来个集锦吧。1、Error:No viable conversion from '__bind' to 'int'源码:int localSocket,remoteSocket;struct sockaddr_in localAddr;int result = bind(localSocket, (struct socka
2012-10-30 08:59:40
3655
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人