Jen*_*nna 2 c++ compiler-construction turbo-c++ visual-c++
嗨,我已经用 Visual c++ 编写了一个程序,无论出于何种原因,现在我都需要在 turbo c++ 3.0 中运行/编译这个相同的程序。
我已经设法从某个来源获得了编译器,但是当我尝试编译我的代码时出现了很多错误。我已经注释掉了“#include stdafx.h”为ide中的目录和库设置了适当的路径。这些是给我错误的行
#include <list> //Error unable to open include file list
using namespace std; //Declaration syntax error
typedef list<int> itemist; // , expected
bool setPlayerChar(char key); // Type name expected // Declaration missing ;
void generateItemList(piece market[9], itemlist &ilist) // ) expected
bool exit = false; // Undefined symbol 'bool' // statement missing ;
Run Code Online (Sandbox Code Playgroud)
几年前当 Turbo C++ 3.0 是最先进的时,今天的很多 C++ 东西都不存在。没有 STL,没有<list>,没有命名空间,甚至没有类型bool(通常由宏“BOOL”模拟)。如果我没记错的话,它只是一个 16 位编译器,它为您提供了额外的“乐趣”int和指针算法。
快乐移植;-)