码迷,mamicode.com
首页 >  
搜索关键字:argc    ( 2629个结果
QT 操作数据库
整理一下QT操作数据库的一些要点,以备以后的查询学习(主要是操作mysql)。首先,要查询相关的驱动是否已经装好了,可以用以下的程序进行验证:#include #include #include #include int main(int argc, char *argv[]){QCoreAppli...
分类:数据库   时间:2014-06-29 13:30:30    阅读次数:4505
Objective C -2 - 随机数,可变字符串,字符串,SubString
int main(int argc, const char * argv[]){ @autoreleasepool { NSString *outputString = @"1234567890!@#$%^&*()"; ...
分类:其他好文   时间:2014-06-07 02:56:29    阅读次数:207
Ubuntu14.04 Objective-C hello world
1. Install GNUstepsudo apt-get install gnustep gnustep-devel2. Write hello world program, and save as hello.m#import int main (int argc, const char * ...
分类:其他好文   时间:2014-06-02 12:49:08    阅读次数:185
CreateMutex实现只能打开一个客户端
#include "stdafx.h"#include #include using namespace std;int _tmain (int argc, LPTSTR argv[]){ HANDLE h=CreateMutex(NULL,TRUE,"AAAAAAA"); if(Get...
分类:其他好文   时间:2014-05-31 16:44:37    阅读次数:209
Q窗口操作函数(窗口最大化,全屏,隐藏最大化最小化按钮)
//Qt主窗口没有最小化,最大化按钮且最大化显示int main(int argc, char *argv[]){QApplication a(argc, argv);TestQtForWinCE w;w.setWindowFlags(w.windowFlags()& ~Qt::WindowMaxi...
分类:其他好文   时间:2014-05-29 22:53:17    阅读次数:332
C --gettimeofday===获取某个程序经历的时间
#include #include #include int gettimeofday(struct timeval*tv,struct timezone *tz);int main(int argc, char* argv[]){ int timeuse; struct timeva...
分类:其他好文   时间:2014-05-29 09:00:28    阅读次数:290
Wargame narnia level 2 (中文攻略)
前面省略连接部分…… cat narnia2.c #include #include #include int main(int argc, char * argv[]){ char buf[128]; if(argc == 1){ printf("Usage: %s argument\n", ar...
分类:其他好文   时间:2014-05-28 11:49:49    阅读次数:560
linux下c语言利用iconv实现utf-8转unicode
#include #include #include #include int main(int argc, char **argv){/* 目的编码, TRANSLIT:遇到无法转换的字符就找相近字符替换 * IGNORE :遇到无法转换字符跳过*///char *encTo = "UNICODE...
分类:编程语言   时间:2014-05-28 00:44:56    阅读次数:619
oc中的block
#import int main(int argc, const char * argv[]){ @autoreleasepool { //block的规则 //返回值类型(^block名称)(形参参数列表)一般形参变量名不用写= ^返回值类型(实参数列表){block体}...
分类:其他好文   时间:2014-05-25 20:37:16    阅读次数:193
Linux GTK Hello,World
1 #include 2 3 int main(int argc, char **argv) 4 { 5 GtkWidget *window; 6 gtk_init(&argc, &argv); 7 window = gtk_window_new(GTK_WINDOW_...
分类:系统相关   时间:2014-05-25 20:14:10    阅读次数:314
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!