如果使用DOSBox在Windows 7中安装了turbo执行程序,那么如何编译并通过命令提示符运行。我一直在使用环境变量-path setting.But试过当我运行该程序的如何在命令提示符下编译和运行Turbo编译器(Windows 7)
C:\TurboC++\Disk\TurboC3\BIN\tcc Test.c
Turbo c++ Version 3.00 Copyright (c) 1992 Borland
International:
Error test.c 1:Unable to open include file 'stdio.h'
Error test.c 2:Unable to open include file 'conio.h'
*** 2 errors in Compie ***
Available memory 4134742
C:\TurboC++\Disk\TurboC3\BIN\
========================== ======== test.c的
#include<stdio.h>
#include<conio.h>
void main()
{
printf("Hello command prompt");
getch();
}
你有使用Turbo C++的好理由吗?这是一个21岁的编译器,它只支持非常不成熟的C++和C子集。使用这种编译器很可能会教你使用错误的编码方法,就像你已经看到的古代代码示例一样。 有很多更好的现代编译器。 –