先来介绍三个个API函数AddFontResource,SendMessage,RemoveFontResource。AddFontResource这是一个添加字体资源到系统字体表中,原型如下:int AddFontResource( LPCTSTR lpszFilename // point...
/*对于此类的模型为:class object{ float _x;//类的nonstatic成员函数 _vptr_Point;//指向虚函数表的指针}virtual table//虚函数表的信息(应该存放的是一些指针)slot1---type info for Point(用于支持RT...
分类:
其他好文 时间:
2014-10-06 11:23:10
阅读次数:
263
--CHECKalter table students --修改的表名称add constraint check_stu --定义约束名check(StuNum like '2012[0-9][0-9][0-9][0-9]') --定义详细的约束
分类:
数据库 时间:
2014-10-06 02:52:09
阅读次数:
181
// // if ( $_GET['action'] == 'search' ) {// $_clean = array();// $_clean['stype'] = _check($_POST['stype']);// $_clean['key'] = _check($_POST['key...
分类:
Web程序 时间:
2014-10-05 20:26:58
阅读次数:
370
/**
* 书本:【ThinkingInC++】
* 功能:引用计数,可以知道有多少个对象指向这个对象。
* 时间:2014年10月5日14:28:11
* 作者:cutter_point
*/
#include "../require.h" //这个文件是为了检验一些错误的,这个可以用#include代替,但是相应的函数也要改
#include
#include
using namesp...
分类:
编程语言 时间:
2014-10-05 18:00:48
阅读次数:
136
/**
* 书本:【ThinkingInC++】
* 功能:重载new和delete,来模仿内存的分配
* 时间:2014年10月5日14:30:11
* 作者:cutter_point
*/
#include //size_t这个类型的使用
#include
#include
#include
using namespace std;
ofstream out("Framis.t...
分类:
编程语言 时间:
2014-10-05 17:43:48
阅读次数:
215
头文件PStash.h
/**
* 书本:【ThinkingInC++】
* 功能:pointer Stash的头文件
* 时间:2014年10月5日14:33:15
* 作者:cutter_point
*/
#ifndef PSTASH_H_INCLUDED
#define PSTASH_H_INCLUDED
class PStash
{
int quantity; //...
分类:
编程语言 时间:
2014-10-05 17:43:31
阅读次数:
302
/**
* 书本:【ThinkingInC++】
* 功能:使用delete void*可能会出错
* 时间:2014年10月5日14:31:43
* 作者:cutter_point
*/
#include
using namespace std;
class Object
{
void* data; //一个void*类型的指针
const int size;
c...
分类:
编程语言 时间:
2014-10-05 16:20:18
阅读次数:
308
CentOS+Nginx+PHP+MYSQL搭建好之后,跑PHP报“Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure y...
分类:
Web程序 时间:
2014-10-05 02:27:47
阅读次数:
205
非成员运算符
当运算符的左侧是不同的类的时候,就不能吧运算符重载到类里面了。
IostreamOperatorOverloading.cpp
/**
* 书本:【ThinkingInC++】
* 功能:非成员运算符
* 时间:2014年10月4日14:23:25
* 作者:cutter_point
*/
//当运算符的左侧是不同的类的时候,就不能吧运算符重载到类里面了...
分类:
编程语言 时间:
2014-10-04 17:16:06
阅读次数:
288