VC中的win32控制台程序,然后包含MFC的程序,用CreateThread()向其对应函数传参数的问题//test.cpp:Definestheentrypointfortheconsoleapplication.
//
#include"stdafx.h"
#include"test.h"
#ifdef_DEBUG
#definenewDEBUG_NEW
#undefTHIS_FILE
staticcharTHIS_FILE[]=__FILE__..
分类:
编程语言 时间:
2015-04-14 20:22:18
阅读次数:
180
1.创建一个Qt gui application工程,使用设计器调出一个tabwidget控件,如下图
2.pro文件如下
QT += opengl
# LIBS+=-IGLU
LIBS += -lglut -lGLU
TARGET = .
TEMPLATE = app
SOURCES += main.cpp mainwindow.cpp n...
分类:
其他好文 时间:
2015-04-14 19:52:58
阅读次数:
185
以下内容来自:http://blog.csdn.net/g_salamander/article/details/8107692在应用程序获取视频数据的流程中,都是通过 ioctl 命令与驱动程序进行交互,常见的 ioctl 命令有:[cpp]view plaincopyVIDIOC_QUERYCA...
分类:
其他好文 时间:
2015-04-14 16:19:05
阅读次数:
180
// 111.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;class Person{private: string m_strName;public: Person(string str...
分类:
其他好文 时间:
2015-04-14 15:58:33
阅读次数:
133
用例子给你示范 // 1.cpp int x = 10; // 2.cpp 注意没有包含1.cpp #include using namespace std; extern int x;int main () { cout void print() { std::cout using name...
分类:
编程语言 时间:
2015-04-14 12:32:06
阅读次数:
149
一、问题引入
工作期间,某系统设计师抛出如下一个问题,下面的代码,输出几个“-”?:
[cpp]
view plaincopyprint?
/****************************************************************************** Copyright by Javacode007, All r...
分类:
系统相关 时间:
2015-04-14 10:02:21
阅读次数:
263
写一个小程序来统计函数调用时间,简单明了直接看代码,有三个文件,FunTimer.h , FunTimer.cpp ,FunTimerMan.cpp 分别如下:
FunTimer.h文件
#ifndef _FUNTIMER_H
#define _FUNTIMER_H
#include
#include
#include
using namespace std;
class F...
分类:
编程语言 时间:
2015-04-14 00:46:50
阅读次数:
312
题目:https://leetcode.com/problems/remove-duplicates-from-sorted-array/Given a sorted array, remove the duplicates in place such that each element appea...
分类:
其他好文 时间:
2015-04-14 00:26:32
阅读次数:
176
解题思路:终于把这道splay神题A掉了,splay专题也算是告一段落了,这个题主要的坑点,还是旋转和区间合并结合。解题代码: 1 // File Name: hysbz1500.cpp 2 // Author: darkdream 3 // Created Time: 2015年04月10日...
分类:
其他好文 时间:
2015-04-14 00:19:42
阅读次数:
361
解题思路:其实就是找能组成的最大集合。max(a[1],a[2],a[3].........a[n])/gcd(a[1],a[2],a[3],......a[n]) 解题代码: 1 // File Name: e.cpp 2 // Author: darkdream 3 // Created Tim...
分类:
其他好文 时间:
2015-04-13 20:49:20
阅读次数:
116