如何在Turbo C ++ 3.2编译器中使用long long关键字 [英] how to use long long keyword in Turbo C++ 3.2 compiler

查看:97
本文介绍了如何在Turbo C ++ 3.2编译器中使用long long关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一些需要用CPP编写程序的嵌入式工作。我的机器有dos平台。在我的程序中,我使用的是long long关键字,该关键字不起作用。我使用的是turboC ++ 3.2编译器。但是我如何在我的编译器中使用这个文件。
或其他一些可用于基于dos的可执行文件的嵌入式关键字的编译器。

解决方案

您正在使用平台从1980年代开始,甚至在C ++尚未成为标准之前。甚至您的 int 也只有16位。



不清楚您要使用什么 long long ,但是如果您追求的是64位类型,那么就不走运了。无论哪种方式,您的编译器都根本不支持这种类型。您将不得不提出一种不需要使用这种类型的解决方法。



或者从现在开始使用编译器。


I am doing some emnedded work for which I am writing program in CPP. My machine has dos platform. In my program I am using long long keyword which is not working.I am using turboC++ 3.2 compiler.

I have searched a lot and find C99 library has stdint.h file but how can i use this file with my compiler. Or some other comiler to work on embedded keywords which made dos based executable file.

解决方案

You are using a platform from the 1980s, before C++ even existed as a standard. Even your int is only 16-bit.

It's not clear what you want to use long long for but if you're after a 64-bit type you're out of luck. Either way, your compiler simply does not support this type. You'll have to come up with a workaround that does not require use of this type.

Or use a compiler from now times.

这篇关于如何在Turbo C ++ 3.2编译器中使用long long关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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