摘要:
It cover for 4 main issues:Data slicing- UDP datagrams cannot contain an infinite amount of information. Therefore, you will (often) need to slice your information into multiple datagrams and reconnect the puzzle pieces at the other end. For a given 'slicing', you need unique identifier and 阅读全文
posted @ 2012-10-06 22:52
hailong
阅读(177)
评论(0)
推荐(0)
摘要:
#include "exp.h"#include<QString>exp::exp(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags){ ui.setupUi(this); connect(ui.pushButton,SIGNAL(clicked()),this,SLOT(on_pushButton_clicked()));} 当然还需要在.h里声明信号。 阅读全文
posted @ 2012-10-06 18:09
hailong
阅读(402)
评论(0)
推荐(0)
摘要:
原来一句话就可以搞定了:int main(int argc, char *argv[]){ QApplication a(argc, argv); ** w; w.setWindowFlags(w.windowFlags()& ~Qt::WindowMaximizeButtonHint& ~Qt::WindowMinimizeButtonHint); w.show(); return a.exec();} 阅读全文
posted @ 2012-10-06 17:26
hailong
阅读(4225)
评论(0)
推荐(0)
摘要:
看网上有人专门做了一些小工具,用来统计代码行数。感觉不是很必要。因为Visual Studio中的搜索功能支持正则表达式(虽然语法比较诡异),我们完全可以通过正则表达式来遍历整个解决方案从而获得代码行数。^:b*[^:b#/]+.*$需要注意:#开头和/开头或者空行都不计入代码量。如果需要只统计代码文件的代码量,可以按住Ctrl+Shift+F之后选择查找文件的类型。引用:http://www.imkevinyang.com/2009/05/visual-studio%E7%BB%9F%E8%AE%A1%E6%9C%89%E6%95%88%E4%BB%A3%E7%A0%81%E8%A1%8C% 阅读全文
posted @ 2012-10-06 15:11
hailong
阅读(183)
评论(0)
推荐(0)
摘要:
int GetInputStyle(){ if ("0x" == m_Str.substr(0,2)) return HexInput; boost::regex lRe("[2-9]"); boost::match_results<std::string::const_iterator> what; bool lSearchResult = boost::regex_search(m_Str.begin(), m_Str.end(), lRe); if(false == lSearchResult) { lRe = "[0-1]& 阅读全文
posted @ 2012-10-06 11:05
hailong
阅读(242)
评论(0)
推荐(0)
摘要:
替换!先替换空格,按ctrl+H,把所有空格替换掉,然后替换空行,替换^p^p为^p,如果有手动换行符则需要先替换为自动换行符,^l替换为^p 阅读全文
posted @ 2012-10-06 10:18
hailong
阅读(169)
评论(0)
推荐(0)

浙公网安备 33010602011771号