|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『楼 主』:
请问原始的BASIC有模块化功能吗(函数)吗?
使用 LLM 解释/回答一下
没学过BASIC语言,请问原始的BASIC有模块化功能吗(函数)吗?
Haven't learned BASIC language, does the original BASIC have modular functions (functions)?
|
|
2007-10-4 11:55 |
|
|
jjww2999
初级用户
 
积分 42
发帖 18
注册 2009-5-13
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
有相当于模块功能,就是子程序,该子程序总有至于一个return语句作为返回,由gosub语句调用。缺点是,主程序和子程序所用的变量是互相可见的,所以要特别注意变量的使用污染问题。
There are functions equivalent to modules, which are subroutines. There is always at least one return statement in such subroutines for returning, and they are called by the gosub statement. The disadvantage is that the variables used in the main program and the subroutine are visible to each other, so special attention should be paid to the pollution problem of variable usage.
|
|
2010-6-16 10:27 |
|
|
AlexZhang
系统支持
            
积分 995
发帖 427
注册 2007-2-8
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
当然没有OO的东西了……想要OO的失望了吧
那时候根本没有OO的概念
Of course, there are no object-oriented things... Those who wanted object-oriented are disappointed, right? At that time, there was simply no concept of object-oriented.
|
|
2010-6-17 22:23 |
|
|
johnsonlam
银牌会员
     阿林
积分 1410
发帖 497
注册 2004-6-28 来自 九龍,香港
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Originally posted by GOTOmsdos at 2007-10-4 11:55 AM:
没学过BASIC语言,请问原始的BASIC有模块化功能吗(函数)吗?
所 謂 原 始 的 BASIC 是 指 Microsoft BASIC 嗎 ?
直 到 Quick BASIC 都 沒 有 object 的 概 念 呢 , Visual BASIC 根 本 都 不 是 BASIC 了 !
Originally posted by GOTOmsdos at 2007-10-4 11:55 AM:
I haven't learned the BASIC language. Does the original BASIC have modular functions (functions)?
Is the so-called original BASIC referring to Microsoft BASIC?
Until Quick BASIC, there was no concept of object. Visual BASIC is not BASIC at all!
|

我 的 網 站 - http://optimizr.dyndns.org
|
|
2010-6-18 23:53 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
PC机原始的BASIC应该是ROMBASIC(INT 18H启动),是否支持子程序就不太记得了。
早期用过IBM的BASICA,记得可以调用子程序。
QBWIN已经有控件和属性这类东西了,很多一键还原界面就是用它写的。
Last edited by netwinxp on 2010-6-20 at 14:27 ]
The original BASIC on PC should be ROMBASIC (started by INT 18H), and I can't quite remember if it supports subroutines. I used IBM's BASICA early on and remember that it could call subroutines. QBWIN already has things like controls and properties, and many one-key restore interfaces were written with it.
Last edited by netwinxp on 2010-6-20 at 14:27 ]
|
|
2010-6-20 14:24 |
|