Visual c ++到turbo c ++ [英] Visual c++ to turbo c++
问题描述
我已经设法从一些来源的编译器,但我得到了很多错误,当我尝试编译我的代码。我已注释掉#include stdafx.h为ide中的目录和库设置相应的路径。这些是给我错误的行
#include< list> //错误无法打开包含文件列表
使用namespace std; //声明语法错误
typedef list< int>项目//,expected
bool setPlayerChar(char key); //类型名称expected //声明缺失;
void generateItemList(piece market [9],itemlist& ilist)//)expected
bool exit = false; //未定义符号'bool'//语句丢失;
当Turbo C ++ 3.0是最先进的,艺术几年前,很多C ++的东西今天不存在。没有STL,没有< list>
,没有命名空间,甚至不是类型 bool
'BOOL')。当我记得正确,它只是一个16位编译器,什么给你额外的有趣与 int
和指针arithmetik。
快乐移植; - )
Hi I have written a program in visual c++ and for whatever reason now i need to run/compile this same program in turbo c++ 3.0.
I have managed to get the compiler from some source but I get a lot of errors when i try to compile my code. I have commented out "#include stdafx.h" set the appropriate paths for the directories and libraries in the ide. these are the lines that give me errors
#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 ;
When Turbo C++ 3.0 was state-of-the-art several years ago, a lot of C++ things of today did not exist. No STL, no <list>
, no namespaces, not even the type bool
(was typically emulated by a macro 'BOOL'). When I remember correctly, it was just a 16 bit compiler, what gives you additional "fun" with int
and pointer arithmetik.
Happy porting ;-)
这篇关于Visual c ++到turbo c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!