- 博客(6)
- 资源 (2)
- 收藏
- 关注
转载 js中windows.history使用
语法格式: window.history[数值] window.history.方法() window.history.属性 后退+刷新在C# Web程序中,如为页面按钮写返回上一页代码 this.RegisterClientScriptBlock("E", "history.go(-2);"); 其中,history.go(-2),要
2017-06-06 19:28:08
2221
原创 TCP demo
服务端: #include #include #include #define DEFAULT_PORT 5150 #define DEFAULT_BUFFER 4096 int iPort = DEFAULT_PORT; // Port to listen for clients on BOOL bInterface = FALSE, /
2016-01-21 01:47:47
394
原创 select()实现
#include #include #include #define PORT 5150 #define DATA_BUFSIZE 8192 typedef struct _SOCKET_INFORMATION { CHAR Buffer[DATA_BUFSIZE]; WSABUF DataBuf; SOCKET Socket; OVERLA
2016-01-20 21:54:28
312
原创 C++ ATL 中list中删除操作
初学者在使用链表删除遍历中经常会报这样一个错误:list iterator not incrementable,错误的原因可能如下 for (it = stu.begin();it != stu.end();it++) { if (strcmp(p,it->m_Name) == 0) { it = stu.erase(it); } } 因为earse后会把迭代器释放掉,故再一次
2016-01-11 19:57:39
428
原创 单链表的增删改查
/************************************************************************/ /* 单链表的增删改查 */ /*********************************************************
2016-01-07 02:13:46
277
原创 字符串16进制转int
#include using namespace std; int main() { int mm = 0x11223344; char *ppp = (char*)&mm;//int转成char* cout int aa ; ((char*)&aa)[0] = ppp[0]; //char*转换成int ((char*)&aa)[1] = ppp[1]; ((char*)
2015-12-29 21:50:41
786
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人