how to use long long keyword in Turbo C++ 3.2 compiler

回眸只為那壹抹淺笑 提交于 2019-12-13 09:45:19

问题


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.


回答1:


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.




回答2:


Instead of writing long long, try writing long long int . Assumption : The error generator echoes that long long is not recognised.



来源:https://stackoverflow.com/questions/45085435/how-to-use-long-long-keyword-in-turbo-c-3-2-compiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!