⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 namesp.html

📁 矩阵算法库newmat10.tar.gz的帮助文件
💻 HTML
字号:
<HTML><HEAD><TITLE>Newmat09 - namespace</TITLE></HEAD><BODY><H2>Namespace</H2><A HREF="error.html">  next</A> - <A HREF="error.html">  skip</A> - <A HREF="refer.html">  up</A> - <A HREF="index.html">  start</A><P><I>Namespace</I> is a new facility in C++. Its purpose is to avoid name clashesbetween different libraries. I have included the namespace capability.Activate the line <TT>#define use_namespace</TT> in <TT>include.h</TT>. Theninclude either the statement<PRE>   using namespace NEWMAT;</PRE>at the beginning of any file that needs to access the newmat library or <PRE>   using namespace RBD_LIBRARIES;</PRE>at the beginning of any file that needs to access all my libraries. <P>This works correctly with <A HREF="borland.html">Borland</A> C++ version 5.<P><A HREF="microso.html">Microsoft</A> Visual C++ version 5 works in my example and testfiles, but fails with apparently insignificant changes. If you #include "newmatap.h",but no other newmat include file, then also #include "newmatio.h".<P>My use of namespace does not work with <A HREF="gcc.html">Gnu g++</A> version 2.7.2.<P>I have defined the following namespaces:<UL><LI> RBD_COMMON for functions and classes used by most of my libraries<LI> NEWMAT for the newmat library<LI> RBD_LIBRARIES for all my libraries</UL><P><A HREF="error.html">  next</A> - <A HREF="error.html">  skip</A> - <A HREF="refer.html">  up</A> - <A HREF="index.html">  start</A><P></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -