随笔分类 -  C++

摘要:htonl(), ntohl(), htons(), ntohs() 函数在C/C++写网络程序的时候,往往会遇到字节的网络顺序和主机顺序的问题。这是就可能用到htons(), ntohl(), ntohs(),htons()这4个函数。网络字节顺序与本地字节顺序之间的转换函数:htonl()--"... 阅读全文
posted @ 2015-11-30 11:00 知奇所以然 阅读(911) 评论(0) 推荐(0)
摘要:QString str = ui.ll->text(); try { if (str == NULL) { throw 1; } else { throw 1.2; } } catch (int & e) ... 阅读全文
posted @ 2015-10-14 20:05 知奇所以然 阅读(233) 评论(0) 推荐(0)