码迷,mamicode.com
首页 >  
搜索关键字:argv    ( 3650个结果
OpenCV show two cameras 同时显示两个摄像头
用OpenCV同时显示两个摄像头的内容的代码如下:#include #include #include #include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]) { CvCapture...
分类:其他好文   时间:2015-02-27 06:39:24    阅读次数:327
C++备忘-QT(3)
猜数字游戏本博客所有内容是原创,如果转载请注明来源http://blog.csdn.net/myhaspl/main.cpp/**猜数字游戏*author: http://blog.csdn.net/myhaspl*date:2015.02.25*/#include#include"guessdialog.h"intmain(intargc,char*argv[]){    QApplicatio...
分类:编程语言   时间:2015-02-25 21:13:30    阅读次数:197
C++备忘-QT(1)
#include #include int main(int argc, char *argv[]){ QApplication a(argc, argv); QLabel *label=new QLabel("您好"); label->show(); return a.exec();}main.ccp如上:本博客所有内容是原创,如果转载请注明来源http://blog.c...
分类:编程语言   时间:2015-02-23 21:16:37    阅读次数:236
pyqt基础: tab之下拉
importsysfromPyQt4importQtGuidefmain():app=QtGui.QApplication(sys.argv)window=QtGui.QWidget()window.setWindowTitle('ScrollingTabsExample')tab1=QtGui.Q...
分类:其他好文   时间:2015-02-21 15:25:08    阅读次数:345
Linux IPC实践(12) --System V信号量(2)
实践1:信号量实现进程互斥父子进程执行流程如下:父进程子进程PPO(print)X(print)sleepsleepO(print)X(print)VVsleepsleep从图中可以看出, O或X总是成对出现的, 要么两个O, 要么两个X;/**P,V原语实现父子进程互斥使用终端**/ // 程序代码 int main(int argc,char *argv[]) { int semid...
分类:系统相关   时间:2015-02-19 16:20:24    阅读次数:262
IPhone开发值OC基础语法复习
1. 练习1 for循环打印 1-200内不能被3整除的数#import int main(int argc, const char * argv[]) { @autoreleasepool { //for循环打印 1-200内不能被3整除的数 pri...
分类:其他好文   时间:2015-02-19 11:50:47    阅读次数:152
【C/C++学院】(13)QT开发技术/QT 基础/QT 信号和槽
Qt是一个跨平台的c++图形用户界面用用程序框架。 1.入门程序 界面程序:求两个整数的和。 lineEdit  pushButton label 右键, 转到操, click信号。 #include "widget.h" #include int main(int argc, char *argv[]) { QApplication a(ar...
分类:编程语言   时间:2015-02-18 22:08:55    阅读次数:447
Linux进程实践(2) --僵尸进程与文件共享
孤儿进程与僵尸进程孤儿进程:   如果父进程先退出,子进程还没退出那么子进程的父进程将变为init进程。(注:任何一个进程都必须有父进程)//生成孤儿进程 int main(int argc, char *argv[]) { pid_t pid = fork(); if (pid < 0) err_exit("fork error"); else if (p...
分类:系统相关   时间:2015-02-18 11:55:40    阅读次数:260
CreateProcess的使用方法
使用编译器vs2008。第一、第二个參数的使用方法:样例:使用ie打开指定的网页。注意第二个參数是 可运行文件+命令行參数#include "stdafx.h"#include #include int main(int argc, char* argv[]) { STARTUPINFO si...
分类:其他好文   时间:2015-02-17 11:31:47    阅读次数:188
hdu_1257
#include int a[11111], n;int main(int argc, char const *argv[]){ while(~scanf("%d", &n)){ int m = 0; a[1] = -1; for(int i = 1,...
分类:其他好文   时间:2015-02-17 07:02:25    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!