📄 maintest.html
字号:
<TITLE>COG 2.1: Startup File</TITLE><H1>COG 2.1: Welcome</H1> <P>As the result of your first test of <B>cog</B>, the following codeshould be extracted from this file, compiled, linked and started:<PRE>#include "<A HREF="coglib.hxx">cog/coglib.hxx</A>"int main(){ wzOutputDefault("<>"),"\n <<< Welcome to COG 2.1 >>>\n\n","You have successfully compiled, linked and started\n","a simple COG test program.\n\n"" $COG_HOME/maintest.html contains the original code\n"," $COG_WORK/maintest.cxx contains the extracted code\n"," $COG_WORK/test is the program\n"," $COG_WORK/test.sg contains the grid created now:\n\n"; cogenOctree gen = new CogenOctree(); gen->addBox(wzRegion(1), 0.0,1.0, 0.0,1.0, 0.0,1.0); wzgrid grid = (*gen)(); grid->write("test.sg");}</PRE><H2>How to test other test examples</H2> <P>All files with names of the pattern "<B>main*test.html</B>"contain valid test code. This code may be automatically extractedusing the perl scripts <B>cog</B> and <B>coguse</B>. <P><B>> cog main xyz</B> <P>tests the code in <B>main<I>xyz</I>test.html</B>. <P>You can do it in two steps: <P><B>> coguse main start</B> <BR><B>> cog</B> <P>The command <B>coguse main xyz</B> extracts the code frommainxyztest.html into <B><I>$COG_WORK</I>/maintest.cxx</B>. The<B>cog</B> command calls <B>coguse</B> if options are given, compilesand links <B><I>$COG_WORK</I>/maintest.cxx</B> to<B><I>$COG_WORK</I>/test</B> and starts <B><I>$COG_WORK</I>/test</B>.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -