玻璃人是什么意思| 大云是什么| 男性肾虚有什么症状| 体外受精是什么意思| 撮箕是什么意思| 虾皮不能和什么一起吃| 淀粉酶是什么| ca724是什么意思| 中药是什么| 最近发胖过快什么原因| hold on什么意思| 无人区是什么意思| vintage什么意思| 女大一抱金鸡是什么意思| 焱加木念什么| 隔离霜和防晒霜有什么区别| 知恩图报是什么意思| 黄金糕是什么做的| 同房有点痛什么原因| 芦荟有什么用| 怀字五行属什么| 机器学习是什么| 什么情况打破伤风| 盗汗是什么原因| 山楂什么时候成熟| 备孕男性检查什么项目| 下午18点是什么时辰| 摩羯座是什么象| 自私什么意思| 四肢冰凉是什么原因| 菜粥里面放什么菜最好| 气场是什么意思| 阴蒂痒是什么原因| 0到3个月的婴儿惊吓吃什么药| 中央政法委书记什么级别| 梦见脱发是什么征兆| 鲲之大的之是什么意思| 蟒袍是什么人穿的| 流鼻涕吃什么药好| 想吃辣的是什么原因| 月经来了不能吃什么东西| 脑电图轻度异常什么病| 疣是一种什么病| 久之的之是什么意思| 忘年恋是什么意思| 什么规律| 喝酒不能吃什么药| 修造是什么意思| 调兵遣将是什么生肖| 喝什么补羊水| 一座什么| 食管炎是什么原因引起的| 狂犬病是什么| 1月12日是什么星座| 扁平疣是什么引起的| 宝宝肋骨外翻是什么原因| 睫角守宫吃什么| 体检挂什么科| 人参和什么泡酒最好| 湿疹可以吃什么药| 为什么叫白俄罗斯| 孕吐什么时候开始| 原浆酒是什么意思| 心脏彩超ef是什么意思| 小燕子的尾巴像什么| 指奸是什么意思| 柴鸡是什么鸡| 孙悟空是个什么样的人| 山药跟淮山有什么区别| 血清碱性磷酸酶高是什么意思| 首鼠两端什么意思| 臊子面的臊子是什么| 偶发室性期前收缩是什么意思| 肌酸什么时候喝比较好| 腌鱼放什么调料| 豆浆和豆奶有什么区别| 什么是个性| 能量是什么意思| 不动明王是什么属相的本命佛| 子宫多发肌瘤是什么意思| 中考送什么礼物| 高知是什么意思| 支原体肺炎吃什么药| 胃窦溃疡a1期是什么意思| 尿频什么原因| 肝主什么| 玫琳凯属于什么档次| 皮肤长痘痘是什么原因| 梦见自己爬山是什么意思| 绯闻是什么意思| bu是什么颜色| 亮油什么时候涂| 心脏不好喝什么茶比较好| 1989年是什么年| cpi下降意味着什么| 大腿酸痛什么原因| 为什么晚上血压比白天高| 糖精对人体有什么危害| 尔字五行属什么| 长期喝饮料对身体有什么危害| 水瓶座与什么星座最配| 96年属什么生肖| 后背容易出汗是什么原因| 男性小便出血是什么原因| 白天不咳嗽晚上咳嗽吃什么药| 暖手宝里面是什么| 尿里红细胞高什么原因| x58主板配什么cpu| 失眠有什么特效药| 火红火红的什么| charcoal是什么颜色| 垂体催乳素高是什么原因| 拉分是什么意思| 吹箫是什么意思| 味精和鸡精有什么区别| 什么可以去湿气| 空调外机不出水是什么原因| 牛皮癣是什么| 言重了是什么意思| 空调长时间不用再开注意什么| 鲁字五行属什么| 甘露茶叶属于什么茶| 肾阳虚吃什么中成药| 儿童哮喘挂什么科| 女性体寒 吃什么好| 回族不能吃什么肉| 心肾不交吃什么中成药| 穿刺手术是什么意思| 肺火吃什么中成药| 顺流而下什么意思| 验孕棒什么时候测准确| 猪心炖什么治失眠| 杀跌是什么意思| 淋巴细胞减少说明什么| 什么是天体| 三维和四维有什么区别| 小便短赤是什么意思| 嘴苦是什么情况| 易举易泄是什么原因| hcy是什么检查项目| 双氢克尿噻又叫什么| 喘粗气是什么原因| 甲鱼什么人不能吃| 夏天吃什么好| 鱼和熊掌不可兼得什么意思| 生日吃什么| 凌晨两点半是什么时辰| 男性尿很黄是什么原因| 血压高不能吃什么食物| 似是而非是什么意思| 十一月二十二是什么星座| 光绪帝叫什么名字| 蝙蝠属于什么类动物| 六月二十四是什么日子| 猪八戒是什么佛| 手上长小水泡很痒是什么原因| 属羊是什么星座| 哦哦是什么意思| 皮毒清软膏有什么功效| 维生素k2是什么| 一直放臭屁是什么原因| 什么酒好喝| 米色配什么颜色好看| 胎位rsa是什么意思| 黄色分泌物是什么原因| 吃什么补头发| 高脂血症是什么病| 胃气不足吃什么中成药| 牛排用什么油煎好吃| 人丹是什么药| 腹泻吃什么好| 鹦鹉鱼能和什么鱼混养| 艺人是什么意思| 葡挞跟蛋挞有什么区别| 女性为什么会感染hpv| 梦见青蛇是什么预兆| 胆囊手术后不能吃什么| 风湿都有什么症状| 一穷二白什么意思| 树欲静而风不止什么意思| 多梦是什么原因造成的| 眼镜框什么材质的好| 糙皮病是什么病| 入睡困难是什么原因引起的| ccg是什么意思| 高血压不能吃什么食物| 丝瓜有什么好处| 心率失常是什么意思| 海绵体供血不足吃什么药| 见什么知什么| 什么是外阴| 饭后胃胀是什么原因导致的| 僵尸为什么怕糯米| 脚气病缺什么维生素| 青光眼用什么眼药水| 甘油是什么| 人体最大的消化腺是什么| 老年人经常头晕是什么原因造成的| 小米粥配什么菜好吃| 大人发烧吃什么药| 肩周炎贴什么膏药效果最好| 神经系统由什么组成| 女人眉心有痣代表什么| 唐僧肉是什么意思| 打嗝是什么原因引起的| 血糖高的人能吃什么水果| 龋齿什么意思| 干眼症用什么药| 狗狗生产需要准备什么| 妈妈的姐姐应该叫什么| 腊猪蹄炖什么好吃| 梦女是什么| 验孕棒阳性代表什么| 胃火重口臭吃什么药好| 支气管炎不能吃什么| 软笔是什么| cici什么意思| 电视剧上星是什么意思| 女人更年期吃什么药调理最好| 乳酸是什么| 均码是什么意思| 鹤膝风是什么病| 记字五行属什么| 龟头发炎用什么药| 什么克土| 血糖高的人可以吃什么水果| 早射吃什么药可以调理| 口臭吃什么药好| 四川的耗儿鱼是什么鱼| 鼻炎和鼻窦炎有什么区别| 氨基酸是什么东西| 媳妇是什么意思| 盆腔炎什么症状| 孜然是什么| 酸碱度偏高是什么意思| 右肺中叶少许纤维灶是什么意思| 子宫内膜息肉样增生是什么意思| 硫黄是什么| 不什么不| 市辖区是什么意思| 乙醇对人体有什么伤害| 书到用时方恨少下一句是什么| 肺寒吃什么药| 嘴唇淡紫色是什么原因| 女人左手麻要注意什么| 网罗是什么意思| 吃什么可以补黑色素| 香蕉皮擦脸有什么作用与功效| 梦见生肉是什么征兆| 杯弓蛇影告诉我们什么道理| 口苦口臭吃什么药效果最佳| 没有子宫有什么影响| 夏季风寒感冒吃什么药| 早上起来口干口苦口臭是什么原因| 骨性关节炎吃什么药| 八月二十二是什么星座| 小孩肚子疼吃什么药| 牙疼吃什么药止痛快| 上热下寒吃什么食物好| 生辰八字指的是什么| 审美是什么意思| 什么地蹲着| 什么是血清| 哔哩哔哩是干什么的| 百度Jump to content

GIF动画录制工具(ScreenToGif) v2.7.1 单文件版

From Wikipedia, the free encyclopedia
FreeBASIC
ParadigmProcedural, object-oriented
Designed byAndre Victor[1]
DeveloperThe FreeBASIC Development Team
First appeared2004; 21 years ago (2004)
Stable release
1.10.1 / December 25, 2023; 19 months ago (2025-08-06)
Typing disciplineStatic
OSMS-DOS, FreeBSD, Linux, Microsoft Windows
LicenseGNU GPLv2+, Standard libraries licensed under the GNU LGPLv2+
Websitewww.freebasic.net
Influenced by
QuickBASIC, C
百度 CBA历史上,没有一支球队能在0-2落后情况下翻盘。

FreeBASIC is a free and open source multiplatform compiler and programming language based on BASIC licensed under the GNU GPL for Microsoft Windows, protected-mode MS-DOS (DOS extender), Linux, FreeBSD and Xbox. The Xbox version is no longer maintained.[2]

According to its official website,[3] FreeBASIC provides syntax compatibility with programs originally written in Microsoft QuickBASIC (QB). Unlike QuickBASIC, however, FreeBASIC is a command line only compiler, unless users manually install an external integrated development environment (IDE) of their choice.[4]

Compiler features

[edit]

On its backend, FreeBASIC makes use of GNU Binutils in order to produce console and graphical user interface applications. FreeBASIC supports the linking and creation of C static and dynamic libraries and has limited support for C++ libraries. As a result, code compiled in FreeBASIC can be reused in most native development environments.

While not an optimizing compiler, FreeBASIC can optionally transcompile to C to compile with optimizations. FreeBASIC supports inline assembly, multi-threading, and does not use automatic garbage collection.

C style preprocessing, including multiline macros, conditional compiling and file inclusion, is supported. The preprocessor also has access to symbol information and compiler settings, such as the language dialect.

Syntax

[edit]

Initially, FreeBASIC emulated Microsoft QuickBASIC syntax as closely as possible. Beyond that, the language has continued its evolution. As a result, FreeBASIC combines several language dialects for maximum level of compatibility with QuickBASIC and full access to modern features.[5] New features include support for concepts such as objects, operator overloading, function overloading, namespaces and others.[6]

Newline characters indicate the termination of programming statements. A programming statement can be distributed on multiple consecutive lines by using the underscore line continuation char (_), whereas multiple statements may be written on a single line by separating each statement with a colon (:).

Block comments, as well as end-of-line remarks are supported. Full line comments are made with an apostrophe ', while blocks of commented code begin with /' and end with '/.

FreeBASIC is not case-sensitive.

Graphics library

[edit]

FreeBASIC provides built-in, QuickBASIC compatible graphics support through FBgfx, which is automatically included into programs that make a call to the SCREEN command. Its backend defaults to OpenGL on Linux and DirectX on Microsoft Windows. This abstraction makes FBgfx graphics code cross-platform compatible. However, FBgfx is not hardware accelerated.

Users familiar with external graphics utilities such as OpenGL or the Windows API can use them without interfering with the built-in graphics library.

Language dialects

[edit]

As FreeBASIC has evolved, changes have been made that required breaking older-styled syntax. In order to continue supporting programs written using the older syntax, FreeBASIC now supports the following dialects:

  • The default dialect (-lang fb as a command-line argument) supports all new compiler features and disallows archaic syntax.
  • The FB-lite dialect (-lang fblite) permits use of most new, non-object-oriented features in addition to older-style programming. Implicit variables, suffixes, GOSUB / RETURN, numeric labels and other features are allowed in this dialect.
  • The QB dialect (-lang qb) attempts to replicate QuickBASIC behavior and is able to compile many QuickBASIC programs without modification.

Example code

[edit]

Standard programs, such as the "Hello, World!" program are done just as they were in QuickBASIC.

Print "Hello, World!"

sleep:end 'Comment, prevents the program window from closing instantly

FreeBASIC adds to this with support for object-oriented features such as methods, constructors, dynamic memory allocation, properties and temporary allocation.

Type Vector
    Private:
        x As Integer
        y As Integer
    Public:
        Declare Constructor (nX As Integer = 0, nY As Integer = 0)
        Declare Property getX As Integer
        Declare Property getY As Integer
End Type

Constructor Vector (nX As Integer, nY As Integer)
    x = nX
    y = nY
End Constructor

Property Vector.getX As Integer
    Return x
End Property

Property Vector.getY As Integer
    Return y
End Property
Dim As Vector Ptr player = New Vector()

*player = Type<Vector>(100, 100)
Print player->getX
Print player->getY

Delete player

Sleep 'Prevents the program window from closing instantly

In both cases, the language is well suited for learning purposes.

References

[edit]
  1. ^ "freeBASIC about page". freeBASIC compiler. Retrieved 5 February 2012.
  2. ^ FBWiki : FaqPgxbox
  3. ^ freeBASIC Programming Language: Official Web site
  4. ^ "freeBASIC official website downloads page". freeBASIC compiler. Retrieved 13 May 2017.
  5. ^ "freeBASIC dialects". coderJeff's home page. Retrieved 5 February 2012.
  6. ^ "Differences from QB". freeBASIC.net documentation. Retrieved 5 February 2012.
[edit]
IDEs
遂什么意思 老年斑长什么样 高血压什么症状表现 4朵玫瑰代表什么意思 为什么眼睛会肿而且痛
哼哼唧唧是什么生肖 刘邦属什么生肖 肠系膜淋巴结肿大吃什么药 紫光檀是什么木 护理和护士有什么区别
肝硬化早期吃什么药 吃什么缓解便秘 尿白细胞弱阳性是什么意思 燕窝有什么功能 浆细胞肿瘤是什么病
断子绝孙是什么意思 什么字笔画最多 胎膜是什么 毫米后面的单位是什么 月经提前了10天是什么原因
阴茎疼是什么原因hcv7jop6ns9r.cn crispy是什么意思hcv9jop6ns4r.cn 做肠胃镜挂什么科hcv8jop9ns1r.cn 一纸空文是什么意思zhongyiyatai.com 脂肪肝是什么意思啊hcv8jop2ns4r.cn
湿疹擦什么药膏好cj623037.com 明年什么生肖hcv8jop6ns1r.cn 类风湿性关节炎的症状是什么hcv8jop5ns8r.cn 淋巴吃什么药好hcv8jop0ns9r.cn 大便出血吃什么药hcv8jop0ns9r.cn
2023是什么年hcv8jop6ns8r.cn 中医把脉能看出什么hcv8jop6ns4r.cn 身上瘙痒是什么原因hcv8jop9ns3r.cn 做颈动脉彩超挂什么科hcv8jop7ns9r.cn 一什么孩子hcv9jop5ns3r.cn
就诊卡号是什么hcv8jop2ns2r.cn 蕙字五行属什么hcv7jop6ns4r.cn 男人阴虱用什么药bfb118.com 声声慢是什么意思hcv8jop0ns9r.cn 大枕大池是什么意思hcv9jop4ns5r.cn
百度