有劳你们了!

5097QQ 2002-11-13 02:47:11
PASCAL语言到底属于算法语言还是属于非过程语言?
算法语言与非过程语言有区别的联系吗?
程序都是结构化的吗?
随便您百忙之中答复我多少,都一样谢谢了!!!
...全文
106 17 打赏 收藏 转发到动态 举报
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhiwuyang602 2002-11-15
  • 打赏
  • 举报
回复
没有C用的爽!
snake_eye 2002-11-15
  • 打赏
  • 举报
回复
object pascal好东西,完全面向对象的语言!
liuhelin 2002-11-15
  • 打赏
  • 举报
回复
to : ilmore(寒风) 没有么?
看看delphi的帮助把
帮助主题goto statements,

A goto statement, which has the form

goto label

transfers program execution to the statement marked by the specified label. To mark a statement, you must first declare the label. Then precede the statement you want to mark with the label and a colon:

label: statement

Declare labels like this:

label label;

You can declare several labels at once:

label label1, ..., labeln;

A label can be any valid identifier or any numeral between 0 and 9999.
The label declaration, marked statement, and goto statement must belong to the same block. (See Blocks and scope.) Hence it is not possible to jump into or out of a procedure or function. Do not mark more than one statement in a block with the same label.
For example,

label StartHere;

...
StartHere: Beep;
goto StartHere;

creates an infinite loop that calls the Beep procedure repeatedly.
The goto statement is generally discouraged in structured programming. It is, however, sometimes used as a way of exiting from nested loops, as in the following example.

procedure FindFirstAnswer;

var X, Y, Z, Count: Integer;
label FoundAnAnswer;
begin
Count := SomeConstant;
for X := 1 to Count do
for Y := 1 to Count do
for Z := 1 to Count do
if ... { some condition holds on X, Y, and Z } then
goto FoundAnAnswer;

... {code to execute if no answer is found }
Exit;

FoundAnAnswer:
... { code to execute when an answer is found }

end;

Notice that we are using goto to jump out of a nested loop. Never jump into a loop or other structured statement, since this can have unpredictable effects.
hansion3406 2002-11-14
  • 打赏
  • 举报
回复
嘻嘻...我不懂..反正就这么用..
zwjchina 2002-11-14
  • 打赏
  • 举报
回复
Pascal 6.0以下的pascal和Delphi的object pascal是有区别,
不要混为一谈!
zzwu 2002-11-14
  • 打赏
  • 举报
回复
Pascal从5.5版开始就支持面向对象编程,turbo vision 就用OO方法来编程的.
Borland自己认为,BP7是学习OO编程的最理想的语言.
这是Boeland一年前的网站的首页上的所标称的一种看法.
ilmore 2002-11-14
  • 打赏
  • 举报
回复
to: liuhelin(鹤林)
pascal 有goto 语句吗??????
5097QQ 2002-11-14
  • 打赏
  • 举报
回复
有谁能告诉我吗?
liuhelin 2002-11-14
  • 打赏
  • 举报
回复
什么是语法语言?
我的理解算法语言不是一个实际的语言
仅是用来交流的。
pascal是结构的但也支持非结构语句如goto
wrwr8111 2002-11-14
  • 打赏
  • 举报
回复
pascal是算法语言,多数情况下是面向过程的,很少面向对象,所以DELPHI就是面向对象的PASCAL语言。(仅供参考)
zzwu 2002-11-14
  • 打赏
  • 举报
回复
PASCAL语言属于算法语言.
PASCAL语言属于面向过程的语言,也能支持面向对象.
我的理解.

hongqi162 2002-11-14
  • 打赏
  • 举报
回复
up
zhengjinwei888 2002-11-13
  • 打赏
  • 举报
回复
pascal应该属于结构化语言吧

不过不是所有的语言都是结构化语言像basic
Wnyu 2002-11-13
  • 打赏
  • 举报
回复
?????
up
qrlvls 2002-11-13
  • 打赏
  • 举报
回复
感觉仍然是过程语言
现在大多数语言是结构化的,但比较早的一些开发工具是非结构化的
blueshu 2002-11-13
  • 打赏
  • 举报
回复
你说的我不懂,我就是基础太差!
wengj 2002-11-13
  • 打赏
  • 举报
回复
看了书再说

5,930

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧