如何从程序中退出程序? [英] How to exit program from a procedure?

查看:84
本文介绍了如何从程序中退出程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C中,我们可以使用退出退出程序。但是我们如何退出

汇编程序?

In C, we can use "exit" to exit the program.But how can we exit from a
assemble program?

推荐答案



Andy写道:

Andy wrote:
在C中,我们可以使用退出退出程序。但是我们如何退出
汇编程序?
In C, we can use "exit" to exit the program.But how can we exit from a
assemble program?




如果你问如何退出汇编语言程序,你是错误的地方
。尝试一些汇编语言组。


如果你问如何退出C *函数*(因为C没有概念

程序),然后答案是:使用`return`语句。这有两种风格的



1)返回;

从`void`函数返回时使用此函数(最接近程序

in Pascal)


2)return< expression> ;;

使用此函数从返回值的函数返回(最接近Pascal的

函数)



If you''re asking how to exit from an assembly language routine, you''re
in the wrong place. Try some of the assembly language groups.

If you''re asking how to exit a C *function* (as C has no notion of
procedures), then the answer is: using a `return` statement. This comes
in two flavours:

1) return;
Use this when returning from `void` functions (closest to procedure
in Pascal)

2) return <expression>;
Use this to return from function that returns a value (closest to
function in Pascal)


Andy写道:
在C中,我们可以使用退出退出程序。但是我们如何从一个
汇编程序中退出?
In C, we can use "exit" to exit the program.But how can we exit from a
assemble program?




用一把非常大的斧头击中计算机。是什么让你觉得

汇编编程在C新闻组中是热门话题?尝试一个汇编程序

或uk.rec.sheds(它可能比这里更容易接受!)

-

Flash Gordon ,生活在有趣的时代。

网站 - http: //home.flash-gordon.me.uk/

comp.lang.c发布指南和介绍:
http://clc-wiki.net/wiki/Intro_to_clc


Andy说:
Andy said:
在C中,我们可以使用退出退出程序。但是我们如何退出
汇编程序?
In C, we can use "exit" to exit the program.But how can we exit from a
assemble program?




现在,忘记你怎么做,并专注于你是否应该。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上面的域名(但显然放弃了www)



For now, forget how you can, and focus on whether you should.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)


这篇关于如何从程序中退出程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆