上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页

2012年12月30日

algorithms 演算法

摘要: 阅读全文

posted @ 2012-12-30 11:19 GIS-MAN 阅读(131) 评论(0) 推荐(0) 编辑

迭代器

摘要: 迭代器是内部做好的模板 可以用在迭代器的操作有 *, ++, ==, !=, list<char> testchar; list<char>::iterator pos; for(pos=testchar.begin();pos!=testchar。end();++pos) // 一般用++pos ,不是pos++ ,这样更快 { cout<< *pos; // *pos 代表当前元... 阅读全文

posted @ 2012-12-30 10:58 GIS-MAN 阅读(236) 评论(0) 推荐(0) 编辑

2012年12月27日

学习wtl 的安装方式 给vs 提供项目向导

摘要: http://www.codeproject.com/Tips/256944/Installing-the-WTL-Wizard-for-Visual-Studio-2010到这里下http://wtl.svn.sourceforge.net/viewvc/wtl/trunk/wtl/Wizards/AppWiz.tar.gz?view=tar WTL 8.1,然后点击setup100.js,就能安装了,安装成功后 就会弹出一个windows script host提示安装成功现在看一下这个setup100。js 都是什么代码// Setup program for the WTL App W 阅读全文

posted @ 2012-12-27 11:52 GIS-MAN 阅读(1585) 评论(0) 推荐(0) 编辑

2012年12月14日

win32 设置raddiobutton 为默认选中状态

摘要: HWND hhext = GetDlgItem(hwnd, IDC_HEXTILERADIO); SendMessage(hhext, BM_SETCHECK, 1, 0);EndDialog(hhext, 0); // 不让 阅读全文

posted @ 2012-12-14 12:56 GIS-MAN 阅读(352) 评论(0) 推荐(0) 编辑

2012年12月10日

关于QFuture

摘要: #include <QFutureWatcher>#include <QtConcurrentRun>#include <QtConcurrentMap>#include <QFuture>QString TestExecDosCmd(){ QProcess p(0); p.start("cmd", QStringList()<<"/c"<<"ping -n 20 10.19.250.79"); p.waitForStarted(); p.waitForFinis 阅读全文

posted @ 2012-12-10 10:06 GIS-MAN 阅读(1940) 评论(0) 推荐(0) 编辑

2012年12月9日

关于qstring 的那些事情

摘要: ping 10 次想获得% 之前的数字,丢包率 实现方法如下: QStringList str= strTemp.split("%",QString::KeepEmptyParts,Qt::CaseSensitive); QString numFind=str[0].at(str[0].count()-1); 阅读全文

posted @ 2012-12-09 10:54 GIS-MAN 阅读(223) 评论(0) 推荐(0) 编辑

2012年12月8日

qt 获得cmd 命令运行的结果

摘要: http://blog.csdn.net/flxqe/article/details/7801084// 参考BOOL ExecDosCmd(){ #define EXECDOSCMD "ping http://www.baidu.com" //可以换成你的命令SECURITY_ATTRIBUTES sa;HANDLE hRead,hWrite;sa.nLength = sizeof(SECURITY_ATTRIBUTES);sa.lpSecurityDescriptor = NULL;sa.bInheritHandle = TRUE;if (!CreatePipe(&am 阅读全文

posted @ 2012-12-08 16:55 GIS-MAN 阅读(12337) 评论(0) 推荐(0) 编辑

win32 创建带图片的button

摘要: void ClientConnection::CreateButtons(){int nr_buttons = 14; TBADDBITMAP tbab; TBBUTTON tbButtons []= { {0,ID_BUTTON_CAD,TBSTATE_ENABLED,TBSTYLE_BUTTON,0L,0}, {1,ID_BUTTON_FULLSCREEN,TBSTATE_ENABLED,TBSTYLE_BUTTON,0L,1}, {2,ID_BUTTON_PROPERTIES,TBSTATE_ENABLED,TBSTYLE_BUTTON,0L,2}, {3,ID_B... 阅读全文

posted @ 2012-12-08 15:57 GIS-MAN 阅读(1561) 评论(0) 推荐(0) 编辑

WNDCLASS 的用法

摘要: WNDCLASS wndclass; wndclass.style = 0; wndclass.lpfnWndProc = ClientConnection::WndProcTBwin; wndclass.cbClsExtra = 0; wndclass.cbWndExtra = 0; wndclass.hInstance = m_pApp->m_instance; wndclass.hIcon = LoadIcon(m_pApp->m_instance, MAKEINTRESOURCE(IDR_TRAY)); switch (m_opts.m_localCursor) { cas 阅读全文

posted @ 2012-12-08 15:30 GIS-MAN 阅读(1461) 评论(0) 推荐(0) 编辑

2012年12月6日

c++标准库的构成

摘要: http://en.wikipedia.org/wiki/C%2B%2B看看wiki 的解释:The language began as enhancements to C, first adding classes, then virtual functions, operator overloading, multiple inheritance,templates, and exception handling among other features. After years of development, the C++ programming language standard w 阅读全文

posted @ 2012-12-06 15:57 GIS-MAN 阅读(576) 评论(0) 推荐(1) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页

导航