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

2019-09-22 03:01发布

问题:

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.