12 2012 档案

stl 的utility
摘要:std::pair#include <iostream>#include <utility>#include <string>using namespace std;int main () { pair <string,double> product1 ("tomatoes",3.25); pair <string,double> product2; pair <string,double> product3; product2.first = "lightbulbs"; // ty 阅读全文

posted @ 2012-12-30 14:41 GIS-MAN 阅读(451) 评论(0) 推荐(0)

c++ 好玩的类
摘要:http://www.cplusplus.com/reference/valarray/valarray/valarray/ A valarray object is designed to hold an array of elements, and easily perform mathematical operations on them. // valarray constructo... 阅读全文

posted @ 2012-12-30 11:56 GIS-MAN 阅读(402) 评论(0) 推荐(0)

algorithms 演算法
摘要: 阅读全文

posted @ 2012-12-30 11:19 GIS-MAN 阅读(138) 评论(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 阅读(251) 评论(0) 推荐(0)

学习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 阅读(1622) 评论(0) 推荐(0)

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 阅读(377) 评论(0) 推荐(0)

关于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 阅读(1983) 评论(0) 推荐(0)

关于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 阅读(245) 评论(0) 推荐(0)

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 阅读(12388) 评论(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 阅读(1618) 评论(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 阅读(1490) 评论(0) 推荐(0)

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 阅读(595) 评论(0) 推荐(1)

c++ 重载的操作符
摘要:可重载的 输出操作符<< 的重载 为了与 IO 标准库一致,操作符应接受 ostream& 作为第一个形参,对类类型 const 对象的引用作为第二个形参,并返回对ostream 形参的引用。 重载输出操作符一般的简单定义如下: // general skeleton of the overloaded output operator ostream& operator ... 阅读全文

posted @ 2012-12-06 15:01 GIS-MAN 阅读(322) 评论(0) 推荐(0)

c++ 高级库
摘要:http://baike.baidu.com/view/2622589.htm qwt QWT[1],全称是Qt Widgets for Technical Applications,是一个基于LGPL版权协议的开源项目, 可生成各种统计图。它为具有技术专业背景的程序提供GUI组件和一组实用类,其目标是以基于2D方式的窗体部件来显示数据, 数据源以数值,数组或一组浮点数等方式提供, 输出方式可... 阅读全文

posted @ 2012-12-06 14:08 GIS-MAN 阅读(311) 评论(0) 推荐(0)

程序员有哪些渠道找工作
摘要:虽然自己工作的年限不长,但换工作的想法经常有,现在写个日志来记录一下自己为找工作曾经想到的招数。1 去全国性的招聘网站 ,这个如智联 ,前程无忧,中华英才 // 第2份工作2 去地方性的招牌网站,3 周六周末去各种专场招牌会4 在qq群 ,搜索程序员求职招聘群,上海IT 招聘之类的5 通过自己的各种的技术群,直接在群里问 // 第一份工作就是这么找的,虽然第一份工作期间自己受了点伤6 去各种专业技术论坛比如自己搞c#,net,移动开发 , 就去csdn,cnblogs,开源中国,银光中国,http://www.wpxap.com/,http://www.devdiv.com/, iteye。5 阅读全文

posted @ 2012-12-05 12:02 GIS-MAN 阅读(3683) 评论(2) 推荐(1)

qt 基础知识2
摘要:screenshotLabel = new QLabel; screenshotLabel->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);//使用QSizePolicy::Expanding QLabel就会随着窗体的变化而变化 screenshotLabel->setAlignment(Qt::AlignCenter); // 对齐 screenshotLabel->setMinimumSize(240, 160); // 最小让qtextedit 不能输入,只读m_Logw=newQText.. 阅读全文

posted @ 2012-12-04 11:21 GIS-MAN 阅读(279) 评论(0) 推荐(0)

QMainWindows学习笔记
摘要:textEdit = new QPlainTextEdit; //富文本显示器 setCentralWidget(textEdit);//关闭窗体会触发void MainWindow::closeEvent(QCloseEvent *event){ }QMenu 可以添加qactionvoid MainWindow::createMenus(){ fileMenu = menuBar()->addMenu(tr("&File")); fileMenu->addAction(newAct); fileMenu->addAction(openAct); 阅读全文

posted @ 2012-12-04 11:09 GIS-MAN 阅读(493) 评论(0) 推荐(0)

2d graphics
摘要:QPainter can drawgeometric shapes (points, lines, rectangles, ellipses, arcs, chords, pie segments,polygons, and Bézier curves), as well as pixmaps, images, and text. Furthermore,QPainter supports advanced features such as antialiasing (for text andshape edges), alpha blending, gradient filling 阅读全文

posted @ 2012-12-04 10:47 GIS-MAN 阅读(241) 评论(0) 推荐(0)

导航