在没有接触Gdiplus之前,在vc中绘制图片,通常加载一张位图,然后进行贴图。对于现在多种多样的图片格式,之前的GDI并不支持(应该是这样的,呵呵)。而使用Gdiplus则可以选择多种图片格式,比如BMP, ICON, GIF, JPEG, Exif, PNG, TIFF, WMF, and EMF。
下面就介绍下首次接触Gdiplus的一个简单应用。
一、包括相应的头文件及引入...
分类:
其他好文 时间:
2015-06-01 11:38:22
阅读次数:
630
//【数据结构】用C++实现双链表的各种操作(包括头删,尾删,插入,逆序,摧毁,清空等等)
//头文件
#ifndef _LIST_H
#define _LIST_H
#include
using namespace std;
template
class DList;
template
class ListNode
{
friend class DList;
public:
...
分类:
编程语言 时间:
2015-06-01 09:48:46
阅读次数:
154
//【数据结构】用C++编写栈及基本操作(包括入栈,出栈,获得栈顶,摧毁,清空等等)
//头文件
#ifndef _SEQ_STACK_
#define _SEQ_STACK_
#include
using namespace std;
template
class SeqStack
{
public:
SeqStack(size_t sz=INIT_SIZE)
{
cap...
分类:
编程语言 时间:
2015-06-01 09:48:04
阅读次数:
116
//【数据结构】用C++实现单循环链表的各种操作(包括头删,尾删,插入,逆序,摧毁,清空等等)
//头文件
#ifndef _CDLIST_H
#define _CDLIST_H
#include
using namespace std;
template
class CDList;
template
class ListNode
{
friend class CDList;
p...
分类:
编程语言 时间:
2015-06-01 09:47:46
阅读次数:
123
//【数据结构】用栈检测括号是否匹配
//头文件 栈
#ifndef _STACK_
#define _STACK_
#include
#include
using namespace std;
template
class Stack
{
public:
Stack(size_t sz = INIT_SIZE)
{
capacity = sz > INIT_SIZE ?...
分类:
其他好文 时间:
2015-06-01 09:47:32
阅读次数:
125
//【数据结构】用C++编写队列及基本操作(包括插入,出队列,摧毁,清空等等)
//头文件
#ifndef _SEQ_STACK_
#define _SEQ_STACK_
#include
using namespace std;
template
class Queue
{
public:
Queue(size_t sz = INIT_SIZE)
{
capacity =...
分类:
编程语言 时间:
2015-06-01 09:45:42
阅读次数:
138
原文的传送:I don’t want to see another “using namespace xxx;” in a header file ever again 转自 http://blog.csdn.net/pleasecallmewhy/article/details/8528702 ....
分类:
编程语言 时间:
2015-05-31 18:20:40
阅读次数:
145
又又好久没见了。想你们。今天写一篇关于fmdb的使用文章。在工作中,我们有时会用到数据库,所以你会需要一个好用的工具。长话短说开始进入正题。
先导入fmdb库文件。还有就是加入libsqlite3.dylib。这2个前期准备好后,我们就可以开工了。
#import "ViewController.h"
#import "FMDB.h" //导入头文件
@interface ViewContr...
分类:
移动开发 时间:
2015-05-31 16:56:09
阅读次数:
283
1.头文件HString.h
#pragma once
#include
#include
#include
#include
#define SIZE 255
typedef struct HString
{
char *ch;
int length;
}HString;
void Show(); //菜单显示
void InitHString(HString *T);//初始...
分类:
其他好文 时间:
2015-05-31 16:53:44
阅读次数:
127
pthread的创建与演示
引入头文件#import
利用pthread来创建子线程
// 创建线程
pthread_t myRestrict;
pthread_create(&myRestrict, NULL, run, NULL);void *run(void *data)
{
for (int i = 0; i<10000; i++) {...
分类:
编程语言 时间:
2015-05-31 16:52:19
阅读次数:
136