整理一下QT操作数据库的一些要点,以备以后的查询学习(主要是操作mysql)。首先,要查询相关的驱动是否已经装好了,可以用以下的程序进行验证:#include
#include #include #include int main(int argc, char *argv[]){QCoreAppli...
分类:
数据库 时间:
2014-06-29 13:30:30
阅读次数:
4505
int main(int argc, const char * argv[]){
@autoreleasepool { NSString *outputString = @"1234567890!@#$%^&*()"; ...
分类:
其他好文 时间:
2014-06-07 02:56:29
阅读次数:
207
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
#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
//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
#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
前面省略连接部分…… 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
#include #include #include #include int
main(int argc, char **argv){/* 目的编码, TRANSLIT:遇到无法转换的字符就找相近字符替换 * IGNORE
:遇到无法转换字符跳过*///char *encTo = "UNICODE...
分类:
编程语言 时间:
2014-05-28 00:44:56
阅读次数:
619
#import int main(int argc, const char *
argv[]){ @autoreleasepool { //block的规则 //返回值类型(^block名称)(形参参数列表)一般形参变量名不用写=
^返回值类型(实参数列表){block体}...
分类:
其他好文 时间:
2014-05-25 20:37:16
阅读次数:
193
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