Visual c ++到turbo c ++ [英] Visual c++ to turbo c++

查看:163
本文介绍了Visual c ++到turbo c ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写了一个程序在视觉c + +和任何原因,现在我需要运行/编译这个程序在turbo c ++ 3.0。



我已经设法从一些来源的编译器,但我得到了很多错误,当我尝试编译我的代码。我已注释掉#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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆