从int转换为INT32 [英] Convert from int to int32
问题描述
我在C ++ code一堆廉政局的,我需要改变,以INT32的。同样的,我的布尔的。我需要什么头才能使用INT32的和bool32的包含。另外我怎么申报这些曾经我让他们。难道我能只是INT32的替代INT的?
I have a bunch of int's in my c++ code that I need to change to int32's. Same with my bool's. What header do I need to include in order to use int32's and bool32's. Also how do I declare these once I make them. Am I able to just replace the int's with int32's?
例如:
int x;
变为
int32 x;
我收到很多的错误,当我尝试从int到INT32改变。这里有几个:
I am getting lots of errors when I try to change from int to int32. Here's a few:
错误C4430:缺少类型说明符 - 假定为int。注意:C ++不支持默认int
错误C2086:'const int的X':重新定义
推荐答案
在Windows中,您应该可以使用内置的类型__int32。我从来没有听到一个32位的布尔,但你可以只使用typedef为那一个。
On windows you should be able to use the built in type __int32. I've never hear of a 32 bit bool, but you can just use typedef for that one.
这篇关于从int转换为INT32的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!