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

📄 m2_goto.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 07apr2005}{...}
{cmd:help m2 goto}
{hline}
{* index goto tt}{...}
{* index FORTRAN}{...}

{title:Title}

{p 4 4 2}
{bf:[M-2] goto -- goto label}


{title:Syntax}

	{it:label}{cmd::}  ...
		...
		{cmd:goto} {it:label}
		 

{p 4 4 2}
where {it:label}{cmd::} may occur before or after the {cmd:goto}.


{title:Description}

{p 4 4 2}
{cmd:goto} {it:label} causes control to pass to the statement following
{it:label}{cmd::}.  {it:label} may be any name up to 8 characters long.


{title:Remarks}

{p 4 4 2}
These days, good style is to avoid using {cmd:goto}.  

{p 4 4 2}
{cmd:goto} is useful when translating a FORTRAN program, such as


		{cmd}A = 4.0e0/3.0e0
	     10 B = A - 1.0e0
		C = B + B + B
		EPS = DABS(C - 1.0e0)
		if (EPS.EQ.0.0e0) GOTO 10{txt}

{p 4 4 2}
The Mata translation is 

		{cmd}a = 4/3
	s10:    b = a - 1
		c = b + b + b
		eps = abs(c-1)
		if (eps==0) goto s10{txt}

{p 4 4 2}
although, more readable is

		{cmd}a = 4/3
		do {
			b = a - 1
			c = b + b + b
			eps = abs(c - 1)
		} while (eps==0){txt}


{title:Also see}

{p 4 13 2}
Manual:  {hi:[M-2] goto}

{p 4 13 2}
Online:  help for 
{bf:{help m2_do:[M-2] do}},
{bf:{help m2_for:[M-2] for}},
{bf:{help m2_while:[M-2] while}},
{bf:{help m2_break:[M-2] break}},
{bf:{help m2_continue:[M-2] continue}};
{bf:{help m2_intro:[M-2] intro}}
{p_end}

⌨️ 快捷键说明

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