?? namesp.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 + -