专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
有一个Road类,有一个Intersection类,Road类中要含有两个节点Intersection的信息,Intersection要有相邻路的信息列表。 于是Road.h中这样定义: classRoad ...{ private: Intersection*from; Intersection*to; public: ........ } Intersection.h中这样定义: classIntersection ...{ private: list<Road*>roadNext; public: ....... } 很可惜这样编译通 [阅读全文] [PDF]
(对标题的解释:标题中的“源文件”是狭义的概念。小弟只是为了区分,把.h文件称为“头文件“,把.cpp文件称为“源文件“。) 今天有个同事来问我#include<xxx.h>和#inlcude“xxx.h”的区别(关于这个问题,网上已经说滥了,而且林锐博士的《高质量C++/C编程指南》也作了说明)。从这个问题,偶引申出好几个问题,不得已,又去往上”狗狗”了(惭愧的很啊,每次都只能去”狗狗”…>_<…),现将我引申出的问题和解答总结一下,供大家学习或指正。 <!--[if!supportLists]-->一、源文件如何根据 [阅读全文] [PDF]
{** $Id: lauxlib.h,v 1.60 2003/04/03 13:35:34 roberto Exp $** Auxiliary functions for building Lua libraries** See Copyright Notice in lua.h} { this .h header file is translated by melice }unit lauxlib;interfaceuses lua;type luaL_reg = record name: pchar; func: lua_CFu [阅读全文] [PDF]
{ ** $Id: lua.h,v 1.175b 2003/03/18 12:31:39 roberto Exp $ ** Lua - An Extensible Extension Language ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil ** http://www.lua.orgmailto:[email protected] ** See Copyright Notice at the end of this file } { this .h hea [阅读全文] [PDF]
1 共4条 分1页