请注意:Turbo C有两个版本,分别是Turbo C 2.0和Turbo C 2.01

c_language 2006-07-11 06:36:26
请注意:Turbo C有两个版本,分别是Turbo C 2.0和Turbo C 2.01
  这是我在编程中发现的。Turbo C 2.0和Turbo C 2.01。同一个C文件,后面一个版本编译的程序要  稍小一些。这是我偶然中发现的。并且,Turbo C 2.01似乎改正了Turbo C 2.00中处理实型数组的错误。
  下面一段程序:
  main( )
  {
   float a[3][3],sum=0;
   int i,j;
   printf("Enter data:\n");
   for(i=0;i<3;i++)
   for(j=0;j<3;j++)
   scanf("%f",&a[i][j]);
   for(i=0;i<3;i++)
   sum=sum+a[i][i];
   printf("sum=%6.2f\n",sum);
  }
  在Turbo C 2.01中编译、运行正常,但在Turbo C 2.0中运行不正常,产生浮点溢出错误。至于Turbo C 2.01编译的程序要小一些,自己也可以试试,看看我说错没有!
...全文
496 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
copygirl 2006-07-15
  • 打赏
  • 举报
回复
TC很好的,我喜欢
youngphoneix 2006-07-15
  • 打赏
  • 举报
回复
我一直弄不大明白,要是学习的话,难道能找到比GCC更适合的吗?
况且也不存在侵权的问题,中国的教育制度扼杀了一批又一批的学生!
grub2linux 2006-07-15
  • 打赏
  • 举报
回复
VC好是好,可是他不能做纯DOS程序。。
WIN坏了,你还是需要DOS来解决的。。
cambridgeboy 2006-07-14
  • 打赏
  • 举报
回复
以前学C的时候用过
后来都是用VC编译了
supercow 2006-07-14
  • 打赏
  • 举报
回复
TB 是拿给学生门入门学习用的 怎么能说没有用....
c_language 2006-07-14
  • 打赏
  • 举报
回复
现在终于知道了,其实只需要告诉TC需要做浮点数的输入转换。例如:加上这样一个语句:sqrt(1.0);因为默认情况下,没有链接浮点库.加上这样一个语句,正好可以使Turbo C 链接浮点库
tanglucose 2006-07-12
  • 打赏
  • 举报
回复
turbo C 2.01 是Borland公司在turbo C 2.0 热卖N年后,修正了一些小BUG的产品。带点公益性质,就是不赚钱的。之后就是turbo C++ 3.0 了。一般来说还是用2.01吧。
yingge 2006-07-11
  • 打赏
  • 举报
回复
路过看看
wumingchenchao 2006-07-11
  • 打赏
  • 举报
回复
从来不知道。学习了
jixingzhong 2006-07-11
  • 打赏
  • 举报
回复
浮点溢出?
是浮点库的连接吧 ?

改进这个显然是没有任何问题的,
在以前可能资源紧张,
采取尽可能节省资源的策略,
也是正常 ...

但是对于现在来说,
区区一个 浮点库,
小 意思而已 ...
zez 2006-07-11
  • 打赏
  • 举报
回复
据我所知...
现在根本没人用 tb

嵌入式都是32位的,拿tc能干嘛??
chenhu_doc 2006-07-11
  • 打赏
  • 举报
回复
没有看出有什么异样的, 还请楼主多提供点信息!
chenhu_doc 2006-07-11
  • 打赏
  • 举报
回复
先顶!
WELCOME TO TURBO C 2.01 ----------------------- This README file contains important, last minute information about Turbo C 2.01. The HELPME!.DOC file on the COMPILER/UTILITIES disk also answers many common Technical Support questions. TABLE OF CONTENTS ----------------- 1. How to Get Help 2. Installation 3. Important Notes 4. Additional Notes 5. Notes for Turbo Prolog Users 6. Files on the Disks 1. HOW TO GET HELP ------------------- If you have any problems, please read this file, the HELPME!.DOC file, and the Turbo C manuals first. If you still have a question and need assistance, help is available from the following sources: 1. Type GO BOR on the CompuServe bulletin board system for instant access to the Borland forums with their libraries of technical information and answers to common questions. If you are not a member of CompuServe, see the enclosed special offer, and write for full details on how to receive a free IntroPak containing a $15 credit toward your first month's on- line charges. 2. Check with your local software dealer or users' group. 3. Write to us at the following address: Borland International Turbo C Technical Support 1800 Green Hills Road P.O. Box 660001 Scotts Valley, CA 95066-0001 Please remember to include your serial number or we will be unable to process your letter. 4. If you have an urgent problem that cannot wait and you have sent in the license agreement from the front of your manual, you may call the Borland Technical Support Department at (408) 438-5300. Please have the following information ready before calling: a. Product name and serial number on your original distribution disk. Please have your serial number ready or we will be unable to process your call. b. Product version number. The version number for Turbo C is displayed when you first load th
Borland公司在1981年推出C语言程序设计集成开发环境“Turbo C 2.0”,由于其实用稳定的性能,一直长期工作应用在社会不同领域,得到社会各界的广泛认同。Borland公司为了解决该软件的一些Bug,又于1989年推出了升级版“Turbo C v2.01”,紧接着在1992年,由于功能更为强大的C++面向对象程序设计集成开发环境“Turbo C++ 3.0”的面世,导致“Turbo C v2.01”未能得到有效推广。由于C语言程序设计课程一直采用TC2.0作为教学实验环境,为了减少其中的Bug,让同学们更方便的使用,AiY.CN重新找到尘封已久的“Turbo C v2.01”,重新包装上阵,焕发生机! “Turbo C v2.01 重装上阵版”是〖 AiY.CN ☆ 爱游中国 〗为了照顾不熟悉DOS环境软件操作的广大初学者,让大家能在Windows环境下方便地安装Turbo C 2.01,而为其完善了Windows下的运行环境,经过重新包装后推荐给学习《C语言程序设计》的广大师生。使用者并不需要熟悉DOS知识,只需要在安装时将 Turbo C v2.01 指定安装在任意文件夹,再不需要手动更改任何选项,就能够正常编译程序。 “Turbo C v2.01 重装上阵版”的主要功能 1、为了照顾不熟悉DOS环境软件操作的广大初学者,让大家能在Windows环境下方便地安装Turbo C v2.01,本安装程序可以将 Turbo C v2.01 安装在任意指定目录,无需修改 Options 菜单里的 Directory 选项,即可正常编译标准 C 程序! 2、安装程序将在开始菜单上建立“〖 程序设计 〗\Turbo C v2.01”菜单,并建立启动 Turbo C 的快捷方式和配置卸载工具,还有其它相关的一些快捷方式; 4、您建立的C程序文件将保存在“安装目录\TC2.01\Project”目录下,开始菜单上会建立“我的 Project 目录”的快捷方式,令您保存更方便; 5、程序输出的.OBJ和.EXE文件将保存在“安装目录\TC2.01\Output”目录下,开始菜单上会建立“输出文件 Output 目录”的快捷方式,令您管理更方便; 6、附带了方便实用的Word/IE选词搜索工具,在Word文档或网页浏览器中碰到某些词汇,只需要鼠标一划——即可轻松搜索!再不用新开浏览页面和复制、粘贴,实在是简单快捷;

69,336

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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