简体   繁体   English

如何在 turbo c++ 16 位编译器中创建项目

[英]how to create a project in turbo c++ 16 bit compiler

I want to create a project file turbo c++ and link the files in this project.我想创建一个项目文件 turbo c++ 并链接这个项目中的文件。 Although i have tried for it but i found only one option that to open a project no option to create a new project.虽然我已经尝试过,但我发现只有一个选项可以打开一个项目,没有选项可以创建一个新项目。 So How to do that.那么如何做到这一点。

Basically, what you want to do, is to "Open Project".基本上,您想要做的是“打开项目”。 There, you type in a projects name.在那里,您输入项目名称。 It must end with ".PRJ" .它必须以".PRJ"结尾。 When you open it, it will be created.当您打开它时,它将被创建。 Then you can add files to the project by pressing "Insert".然后您可以通过按“插入”将文件添加到项目中。 But have a look at the links below.但是看看下面的链接。

In case these links disappear from the Internet, I add some redundant links.如果这些链接从 Internet 上消失,我会添加一些冗余链接。 The first is the best, also cool is the hundreds of pages long Turbo C manual.第一个是最好的,也很酷的是数百页的 Turbo C 手册。

Graphical example with images!带有图像的图形示例!

Turbo C manual on Scribd Scribd 上的 Turbo C 手册

In Turbo C 2.01 在 Turbo C 2.01 中

Using projects in Turbo/Borland C++ 在 Turbo/Borland C++ 中使用项目

Also, information about porting MSDOS Turbo C programs to Linux此外,有关将 MSDOS Turbo C 程序移植到 Linux 的信息

If you use old Borland Turbo C++ (2.0 for DOS) project is text file with .PRJ extension.如果您使用旧的 Borland Turbo C++(2.0 for DOS)项目是带有.PRJ扩展名的文本文件。 You can open it like any text file (for example test.c) and write all your files into it.您可以像打开任何文本文件(例如 test.c)一样打开它并将所有文件写入其中。 Each row contains one .c or .cpp file without extension followed by its header in parentheses.每一行包含一个没有扩展名的 .c 或 .cpp 文件,后跟括号中的标题。 For example例如

mcalc (mcalc.h) 
mcparser (mcalc.h)
mcdisply (mcalc.h)

... Here mcalc.c has #include "mcalc.h" so that is why it is included in PRJ file. ...这里mcalc.c#include "mcalc.h"所以这就是它包含在 PRJ 文件中的原因。 Other headers for example #include <stdio.h> are not included in .PRJ .其他头文件,例如#include <stdio.h>不包含在.PRJ Of course, if your .c has not any header written by you, .PRJ contains file name of your .c without additional parentheses.当然,如果你的 .c 没有你写的任何头文件, .PRJ包含你的 .c 的文件名,没有额外的括号。

After you create your PRJ , save it.创建您的PRJ ,保存它。 In TC editor set project name (Project->Project name) using name of your .PRJ .在 TC 编辑器中,使用.PRJ名称设置项目名称(Project->Project name)。 And that's it.就是这样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM